Skip to content

Commit

Permalink
Fix update todos api latency (#752)
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya Bharadwaj <aditya@b12.io>
  • Loading branch information
adbharadwaj and Aditya Bharadwaj committed Feb 25, 2021
1 parent 52082c2 commit 261c696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchestra/todos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_serializer(self, *args, **kwargs):

def get_queryset(self, ids=None):
queryset = super().get_queryset()
if ids:
if ids is not None:
queryset = queryset.filter(id__in=ids)
return queryset.order_by('-created_at')

Expand Down

0 comments on commit 261c696

Please sign in to comment.