mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-24 19:49:52 +02:00
get_url_JSON(): fix handling of url = None
This commit is contained in:
1 parent
a349d8ebea
commit
8b3f6d0262
2 files changed
+6
-7
No files matched your search
@@ -335,7 +335,7 @@ class BattleRecordCategory():
|
||||
def get_headers(self):
|
||||
try:
|
||||
headers = [ RESULT_CAT_HEADER_FRMT.format(result_categories[self.category_name][0]) ]
|
||||
for field in result_fields.keys():
|
||||
for field in result_display_fields:
|
||||
print_format = '{:^' + str(result_fields[field][2]) + 's}'
|
||||
headers.append(print_format.format(result_fields[field][0]))
|
||||
return headers
|
||||
|
||||
Reference in new issue
Block a user