Skip to content

Commit 500ec3c

Browse files
committed
Fix order by
1 parent cf30d79 commit 500ec3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgresqleu/confreg/checkin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _get_field_statistics(conference):
252252
),
253253
(
254254
('Latest scans', 'Field', 'Who'),
255-
exec_to_list("SELECT to_char((dynaprops->field)::text::timestamptz, 'ddth hh24:mi:ss'), field, r.firstname || ' ' || r.lastname FROM (SELECT id, regexp_split_to_table(scannerfields, ',') AS field FROM confreg_conference WHERE id=%(confid)s) AS x INNER JOIN confreg_conferenceregistration r ON r.conference_id=%(confid)s AND r.dynaprops ? field ORDER BY 2 desc LIMIT 20", {"confid": conference.id})
255+
exec_to_list("SELECT to_char((dynaprops->field)::text::timestamptz, 'ddth hh24:mi:ss'), field, r.firstname || ' ' || r.lastname FROM (SELECT id, regexp_split_to_table(scannerfields, ',') AS field FROM confreg_conference WHERE id=%(confid)s) AS x INNER JOIN confreg_conferenceregistration r ON r.conference_id=%(confid)s AND r.dynaprops ? field ORDER BY 1 desc LIMIT 20", {"confid": conference.id})
256256
),
257257
]
258258

0 commit comments

Comments
 (0)