Skip to content

Commit

Permalink
Added an export only containing information required for SWARFARM import
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteAndersen committed Jan 8, 2016
1 parent d10fd23 commit 9475de9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SWParser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ def parse_login_data(data):
with open(str(wizard['wizard_id']) + ".json", "w") as f:
f.write(json.dumps(data, indent=4))

with open(str(wizard['wizard_id']) + "-swarfarm.json", "w") as f:
f.write(json.dumps({
'inventory_info': inventory,
'unit_list': monsters,
'runes': runes,
'building_list': data['building_list'],
}))

with open(str(wizard['wizard_id']) + "-info.csv", "w") as f:
f.write("Wizard id,Wizard Name,Crystals,Mana,Arena score")
for name in inventory_map.keys():
Expand Down

0 comments on commit 9475de9

Please sign in to comment.