Skip to content

Commit

Permalink
Python formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-reeve committed Feb 22, 2023
1 parent 06c14b7 commit af44160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def load_instances():
instance_data = sorted(instance_data, key=lambda i: i["rank"])
return instance_data


def generate_instances_api_endpoint(instance_list):
"""A json version of the instance list"""
keys = [
Expand All @@ -101,7 +102,7 @@ def generate_instances_api_endpoint(instance_list):
]
filtered = []
for instance in instance_list:
filtered.append({k:instance[l] for l, k in keys})
filtered.append({k: instance[l] for l, k in keys})
return json.dumps(filtered)


Expand Down

0 comments on commit af44160

Please sign in to comment.