Skip to content

Commit eabd2dd

Browse files
committed
Use user submissions for computing problem difficulty only for problems that have >= 3 submissions.
1 parent 93e60fa commit eabd2dd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

private/scripts/extras/problem_difficulty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
FROM problem_difficulty
8181
WHERE problem_id IN (%(pids)s)
8282
GROUP BY problem_id
83+
HAVING count(*) >= 3
8384
""" % ({"pids": ",".join(pids)})
8485

8586
res = db.executesql(sql_query)

0 commit comments

Comments
 (0)