Skip to content

Commit 10947ac

Browse files
committed
fix accidental filtering of tests with zero scores
1 parent a1af8f1 commit 10947ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hackerrank.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/env python3
22

33
## by Ralf Brown, Carnegie Mellon University
4-
## last edit: 08jun2019
4+
## last edit: 29aug2019
55

66
import argparse
77
import json
@@ -299,7 +299,7 @@ def get_all_test_scores(self,test_id,include_incomplete=False,filters=None):
299299
for cand in c_info:
300300
score = cand['score']
301301
endtime = cand['attempt_endtime']
302-
if (not score or not endtime) and not include_incomplete:
302+
if (score is None or score == '' or not endtime) and not include_incomplete:
303303
continue
304304
if score == int(score):
305305
score = int(score)

0 commit comments

Comments
 (0)