Skip to content

Commit 37c8d81

Browse files
committed
[judge] Fix preferred_items logic for prioritized projects
1 parent 1bd03cf commit 37c8d81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

judge/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def preferred_items(annotator):
1616
prioritized_projects = available_projects.filter(prioritize=True)
1717
items = prioritized_projects if prioritized_projects else available_projects
1818

19-
nonbusy = available_projects.filter(
19+
nonbusy = items.filter(
2020
annotator_current__updated__gte=timezone.make_aware(datetime.utcnow())
2121
+ timedelta(minutes=settings.LIVE_JUDGE_TIMEOUT)
2222
)

0 commit comments

Comments
 (0)