name PSQL subquery

This commit is contained in:
Maximilian Keßler 2023-12-31 12:05:38 +01:00
parent 7e06a09509
commit 975c275718
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -555,7 +555,7 @@ def get_variant_rating_progression():
" INNER JOIN variant_base_ratings"
" ON variants.id = variant_base_ratings.variant_id "
" WHERE variants.rating_type = %s"
") "
") AS t "
"ORDER BY rank",
(rating_type, rating_type)
)