From 9c0b9bde24766b034cc216999be1d3c240f5eb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20B=C3=A4uerle?= Date: Tue, 26 Sep 2023 21:37:53 +0200 Subject: [PATCH] fix: hotfix to remove array_position since it does not work in prod (#227) --- backend/zeno_backend/database/select.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/zeno_backend/database/select.py b/backend/zeno_backend/database/select.py index 8b4a0b1f..540c9828 100644 --- a/backend/zeno_backend/database/select.py +++ b/backend/zeno_backend/database/select.py @@ -986,11 +986,9 @@ def slices(project: str, ids: list[int] | None = None) -> list[Slice]: else: slice_results = db.connect_execute_return( "SELECT id, name, folder_id, filter, " - "array_position(%s,id) as ord FROM slices " - "WHERE project_uuid = %s AND id = ANY(%s) " - "ORDER BY ord;", + "FROM slices " + "WHERE project_uuid = %s AND id = ANY(%s);", [ - ids, project, ids, ],