Skip to content

Commit b4404a7

Browse files
authored
Change SQL query ordering in server_logs.py
1 parent fc42915 commit b4404a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cogs/server_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def build_query(
8181
conditions.append(f"gm.created_at::date = ${n_args}")
8282
bindings.append(during)
8383
sql_query += " AND ".join(conditions)
84-
sql_query += f" ORDER BY 2,1 {order} LIMIT {limit}"
84+
sql_query += f" ORDER BY gc.channel_id,gm.created_at {order} LIMIT {limit}"
8585
return sql_query, bindings
8686

8787
@is_staff_app("OP")

0 commit comments

Comments
 (0)