mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-18 14:12:44 +00:00
in postgres you cannot order by a non-grouped column without doing an aggregate
This commit is contained in:
parent
a34fd707db
commit
90375a0c88
@ -1025,11 +1025,11 @@ def process_instance_list(
|
|||||||
elif attribute in instance_metadata_aliases:
|
elif attribute in instance_metadata_aliases:
|
||||||
if order_by_option.startswith("-"):
|
if order_by_option.startswith("-"):
|
||||||
order_by_query_array.append(
|
order_by_query_array.append(
|
||||||
instance_metadata_aliases[attribute].value.desc()
|
func.max(instance_metadata_aliases[attribute].value).desc()
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
order_by_query_array.append(
|
order_by_query_array.append(
|
||||||
instance_metadata_aliases[attribute].value.asc()
|
func.max(instance_metadata_aliases[attribute].value).asc()
|
||||||
)
|
)
|
||||||
|
|
||||||
process_instances = (
|
process_instances = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user