Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions codedigger/codeforces/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ def is_verdict_ok(submission):


def is_verdict_wrong(submission):
# TODO Check for TC should be greater than 1
return True if submission['verdict'] != 'OK' else False
#it will give wrong submission if and only if user's first case isn't wrong but the overall submission is wrong
if submission['verdict'] != 'OK' and submission['passedTestCount'] < 1:
return True
else:
return False


def get_prob_id(submission):
Expand Down