Skip to content

Commit

Permalink
fix: hotfix to remove array_position since it does not work in prod (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkier authored Sep 26, 2023
1 parent 6d9b228 commit 9c0b9bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/zeno_backend/database/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down

0 comments on commit 9c0b9bd

Please sign in to comment.