Skip to content

Commit

Permalink
Missed iterating an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Jan 12, 2025
1 parent dc7a977 commit 59cc6de
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lang/string_extractor/parsers/enchant.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ def parse_enchant(json, origin):
if "hit_me_effect" in json:
parse_effect(json["hit_me_effect"], origin)

if "special_vision" in json and "descriptions" in json["special_vision"]:
for description in json["special_vision"]["descriptions"]:
if "text" in description:
special_vision_id = description["id"]
write_text(description["text"], origin,
comment="Description of creature revealed by special"
" vision \"{}\"".format(special_vision_id))
if "special_vision" in json:
for vision in json["special_vision"]:
if "descriptions" in vision:
for description in vision["descriptions"]:
if "text" in description:
special_vision_id = description["id"]
write_text(description["text"], origin,

Check failure on line 25 in lang/string_extractor/parsers/enchant.py

View workflow job for this annotation

GitHub Actions / check

IndentationError: unexpected indent
comment="Description of creature revealed "
"by special vision \"{}\""
.format(special_vision_id))

0 comments on commit 59cc6de

Please sign in to comment.