Download:
child 306:edefddec933d
parent 304:e8895f37572b
305:b920a1f9267f
Anton Shestakov <av6@dwimlabs.net>, Sat, 23 Sep 2017 13:12:20 +0800
viewer: one more place needed an explicit order_by() call

1 файлов изменено, 2 вставок(+), 1 удалений(-) [+]
candolint/handlers.py file | annotate | diff | comparison | revisions
--- a/candolint/handlers.py Sat Sep 23 13:07:47 2017 +0800
+++ b/candolint/handlers.py Sat Sep 23 13:12:20 2017 +0800
@@ -31,7 +31,8 @@
cq = (Check
.select(Check, Change)
.join(Change)
- .where(Check.project == project))
+ .where(Check.project == project)
+ .order_by(Check.ordinal.desc()))
if check_num != 'latest':
cq = cq.where(Check.ordinal == check_num)
return get_or_404(cq)