Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
wil93 committed Nov 6, 2024
1 parent 32573c0 commit 07623ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cms/server/admin/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def submissions_status(contest_id):
# Add a "key" column for keeping track of each stats, in case they
# get shuffled.
for key, query in queries.items():
key_column = literal_column("'%s'" % key).label("key")
queries[key] = query.add_column(key_column)
key_column = literal_column(f"'{key}'").label("key")
queries[key] = query.add_columns(key_column)

keys = list(queries.keys())
results = queries[keys[0]].union_all(
Expand Down

0 comments on commit 07623ea

Please sign in to comment.