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 46e4554 + 8e55a1a commit 2ecaf6bCopy full SHA for 2ecaf6b
autoload/leetcode.py
@@ -217,7 +217,8 @@ def _get_category_problems(category):
217
'title': p['stat']['question__title'],
218
'slug': p['stat']['question__title_slug'],
219
'paid_only': p['paid_only'],
220
- 'ac_rate': p['stat']['total_acs'] / p['stat']['total_submitted'],
+ 'ac_rate': p['stat']['total_acs'] / p['stat']['total_submitted'] if \
221
+ p['stat']['total_submitted'] > 0 else 0,
222
'level': _level_to_name(p['difficulty']['level']),
223
'favor': p['is_favor'],
224
'category': content['category_slug'],
0 commit comments