We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ecaf6b + 8dfdd67 commit 8135315Copy full SHA for 8135315
autoload/leetcode.py
@@ -541,7 +541,7 @@ def get_submission(sid):
541
# the second key "runtime" is the runtime in milliseconds
542
# we need to search from the position after the first "runtime" key
543
prev_runtime = re.search("runtime: '([^']*)'", s)
544
- if not prev_runtime:
+ if not prev_runtime or not _group1(prev_runtime, 'N/A').split()[0].isdigit():
545
my_runtime = 0
546
else:
547
my_runtime = int(_group1(re.search("runtime: '([^']*)'", s[prev_runtime.end():]), 0))
0 commit comments