Skip to content

Commit

Permalink
Improve queue query
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Jun 22, 2023
1 parent 65b34d7 commit ace02f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blossom/api/slack/commands/subinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def sub_info_text(subreddit: str) -> str:

query_all = Submission.objects.filter(removed_from_queue=False)
query_sub = query_all.filter(feed__iexact=prefixed_sub)
query_all_queue = query_all.filter(created_at__gte=queue_timeout)
query_all_queue = query_all.filter(created_at__gte=queue_timeout, archived=False)
query_sub_queue = query_all_queue.filter(feed__iexact=prefixed_sub)

total_all = query_all.count()
Expand Down

0 comments on commit ace02f3

Please sign in to comment.