mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 10:17:05 +02:00
Tanks sorted by tank_id
This commit is contained in:
1 parent
43842dc140
commit
57cbc5b233
1 file changed
+2
-2
@@ -79,8 +79,8 @@ async def main(argv):
|
|||||||
tankopedia = collections.OrderedDict()
|
tankopedia = collections.OrderedDict()
|
||||||
tankopedia['status'] = 'ok'
|
tankopedia['status'] = 'ok'
|
||||||
tankopedia['meta'] = { "count": len(tanks) }
|
tankopedia['meta'] = { "count": len(tanks) }
|
||||||
tankopedia['data'] = tanks
|
tankopedia['data'] = bu.sort_dict(tanks, number=True)
|
||||||
tankopedia['userStr'] = userStrs
|
tankopedia['userStr'] = bu.sort_dict(userStrs)
|
||||||
bu.verbose_std('New tankopedia \'' + args.tanks + '\' contains ' + str(len(tanks)) + ' tanks')
|
bu.verbose_std('New tankopedia \'' + args.tanks + '\' contains ' + str(len(tanks)) + ' tanks')
|
||||||
bu.verbose_std('New tankopedia \'' + args.tanks + '\' contains ' + str(len(userStrs)) + ' tank strings')
|
bu.verbose_std('New tankopedia \'' + args.tanks + '\' contains ' + str(len(userStrs)) + ' tank strings')
|
||||||
await outfile.write(json.dumps(tankopedia, ensure_ascii=False, indent=4, sort_keys=False))
|
await outfile.write(json.dumps(tankopedia, ensure_ascii=False, indent=4, sort_keys=False))
|
||||||
|
|||||||
Reference in new issue
Block a user