style: Fix linting issues in problem_stats.py

This commit is contained in:
Paul Gauthier (aider) 2024-12-18 12:48:44 -08:00
parent 14af6f1fba
commit 5dddaac006

View file

@ -134,7 +134,7 @@ def analyze_exercise_solutions(dirs=None, topn=None):
testcase = testcase.replace("exercises/", "") # Remove the exercises/ prefix
# Remove duplicate language prefix (e.g. javascript/javascript/ -> javascript/)
if testcase.startswith(f"{lang}/{lang}/"):
testcase = testcase[len(lang)+1:]
testcase = testcase[len(lang) + 1 :]
exercise_stats.append((lang, testcase, num_solved, percent))
# Sort all exercises by solve rate