mirror of
https://github.com/norohind/SquadsActivityMonitor.git
synced 2026-10-22 17:12:08 +03:00
fix leaderboard by action_id
This commit is contained in:
3 files changed
+11
-4
No files matched your search
@@ -178,7 +178,7 @@ class PostgresModel(AbstractModel):
|
||||
|
||||
with self.db.cursor(cursor_factory=psycopg2.extras.RealDictCursor) as cursor:
|
||||
cursor.execute(
|
||||
postgres_sql_requests.select_last_action_id,
|
||||
postgres_sql_requests.select_leaderboard_by_action_id,
|
||||
{
|
||||
'action_id': action_id
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user