diff options
author | nea <romangraef@gmail.com> | 2022-03-12 21:06:10 +0100 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-03-12 21:06:10 +0100 |
commit | 3613b7ef9524c376488616fa907494c45c97ff8d (patch) | |
tree | 85642aaa68d8b10e1eb582cfb1426b1f7edd59fe /sbdata | |
parent | 7a9d8290fdd73169e9a91034acaab367f35a0c4e (diff) | |
download | sbdata-3613b7ef9524c376488616fa907494c45c97ff8d.tar.gz sbdata-3613b7ef9524c376488616fa907494c45c97ff8d.tar.bz2 sbdata-3613b7ef9524c376488616fa907494c45c97ff8d.zip |
stupid return
Diffstat (limited to 'sbdata')
-rw-r--r-- | sbdata/tasks.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbdata/tasks.py b/sbdata/tasks.py index ede5bac..f50b530 100644 --- a/sbdata/tasks.py +++ b/sbdata/tasks.py @@ -36,7 +36,8 @@ default_chest_costs: dict[str, dict[int, int]] = dict( @register_task("Fetch Dungeon Loot") def fetch_dungeon_loot(args: Arguments): items = [] - for floor in get_wiki_sources_by_title(*[f'Template:Catacombs Floor {f} Loot Master' for f in ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII']]).values(): + for floor_name, floor in get_wiki_sources_by_title(*[f'Template:Catacombs Floor {f} Loot Master' for f in ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII']]).items(): + print(f"Page: {floor_name}") for template in floor.filter_templates(): if template.name.strip() == 'Dungeon Chest Table/Row': item = None @@ -69,4 +70,4 @@ def fetch_dungeon_loot(args: Arguments): defaults = default_chest_costs[chest] cost = defaults[min(f for f in defaults.keys() if f >= ifloor)] items.append(DungeonDrop(item, ifloor, chest, cost, drop_chances)) - return items + return items |