Skip to content
Snippets Groups Projects
Commit e62a8e24 authored by Martin Mareš's avatar Martin Mareš
Browse files

Výsledkovka: Ignorujeme řešení s flagem is_empty

parent 6bf46722
No related branches found
No related tags found
1 merge request!134Prázdné protokoly
...@@ -230,6 +230,7 @@ class Score: ...@@ -230,6 +230,7 @@ class Score:
sols: List[db.Solution] = sess.query(db.Solution).filter( sols: List[db.Solution] = sess.query(db.Solution).filter(
db.Solution.user_id.in_(user_id_subq), db.Solution.user_id.in_(user_id_subq),
db.Solution.task_id.in_(task_ids), db.Solution.task_id.in_(task_ids),
db.Solution.is_empty == False
).all() ).all()
for sol in sols: for sol in sols:
if sol.user_id in self._results: if sol.user_id in self._results:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment