Reimplement human-readable class/category names in totals
This commit is contained in:
parent
e0c342be01
commit
e3b7c15f2a
@ -123,10 +123,10 @@ async def retrieve_totals(user: str, start_date: datetime = None, end_date: date
|
|||||||
|
|
||||||
result = dict(result_list[0])
|
result = dict(result_list[0])
|
||||||
|
|
||||||
# for entry in result["by_class"]:
|
for entry in result["by_class"]:
|
||||||
# entry["aircraft_category"] = aircraft_category_dict[entry["aircraft_category"]]
|
entry["aircraft_category"] = aircraft_category_dict[entry["aircraft_category"]]
|
||||||
# for cls in entry["classes"]:
|
for cls in entry["classes"]:
|
||||||
# cls["aircraft_class"] = aircraft_class_dict[cls["aircraft_class"]]
|
cls["aircraft_class"] = aircraft_class_dict[cls["aircraft_class"]]
|
||||||
|
|
||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user