diff --git a/codedigger/codeforces/api_utils.py b/codedigger/codeforces/api_utils.py index cd8c05f..6d1ba2e 100644 --- a/codedigger/codeforces/api_utils.py +++ b/codedigger/codeforces/api_utils.py @@ -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):