Skip to content

Commit b22e14c

Browse files
authored
Fix correct orders of parameters in ES (#1318)
1 parent a4f06f2 commit b22e14c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cms/service/EvaluationService.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,14 @@ def _missing_operations(self):
356356
counter = 0
357357
with SessionGen() as session:
358358

359-
for operation, timestamp, priority in \
359+
for operation, priority, timestamp in \
360360
get_submissions_operations(session, self.contest_id):
361-
if self.enqueue(operation, timestamp, priority):
361+
if self.enqueue(operation, priority, timestamp):
362362
counter += 1
363363

364-
for operation, timestamp, priority in \
364+
for operation, priority, timestamp in \
365365
get_user_tests_operations(session, self.contest_id):
366-
if self.enqueue(operation, timestamp, priority):
366+
if self.enqueue(operation, priority, timestamp):
367367
counter += 1
368368

369369
return counter

cms/service/esoperations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ def get_submissions_operations(session, contest_id=None):
290290
contest_id (int|None): the contest for which we want the operations.
291291
If none, get operations for any contest.
292292
293-
return ([ESOperation, float, int]): a list of operation, timestamp
294-
and priority.
293+
return ([ESOperation, int, float]): a list of operation, priority
294+
and timestamp.
295295
296296
"""
297297
operations = []

0 commit comments

Comments
 (0)