Skip to content

Commit

Permalink
updated process_server
Browse files Browse the repository at this point in the history
  • Loading branch information
ieaves committed Mar 19, 2024
1 parent 8b38ac7 commit c508073
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
- SERVER_HOST=localhost
- FRONTEND_HOST=localhost
- FRONTEND_URL=http://localhost:3000
- REDIS_HOST=redis
depends_on:
- db
healthcheck:
Expand Down
3 changes: 2 additions & 1 deletion grai-server/app/api/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

def apply_order(queryset: QuerySet, order: Optional[StrawberryField] = strawberry.UNSET):
if order:
queryset = queryset.order_by(*process_order(order))
queryset, args = process_order(order, info=None, queryset=queryset)
# queryset = queryset.order_by(*generate_order_args(order))

return queryset
2 changes: 1 addition & 1 deletion grai-server/app/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c508073

Please sign in to comment.