fix leaderboard by action_id

This commit is contained in:
norohind committed 2021-12-15 21:31:24 +03:00
1 parent b3449c7c63
commit d1ec8b2b69
3 files changed
+11 -4

No files matched your search

+8 -1
View File
@@ -97,7 +97,14 @@ limit 1000;
"""
select_leaderboard_by_action_id = """select
*
name,
tag,
rank,
score,
to_char(timestamp, 'YYYY-MM-DD HH24:MI:SS') as timestamp,
leaderboard_type,
platform,
squadron_id
from squads_stats_states
where action_id = %(action_id)s
order by score desc;