From 374f38591f745a88cab960ea4c37ecef8e9d6f0d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 10 Sep 2024 13:59:32 +0200 Subject: iterate dictionary directly --- quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'quiz.py') diff --git a/quiz.py b/quiz.py index c3ffe6c..616ab79 100755 --- a/quiz.py +++ b/quiz.py @@ -245,7 +245,7 @@ def main(): # Sort the questions acording to the loaded solutions if args.sort == 'solutions': sorted_questions = [] - for s in solutions.keys(): + for s in solutions: key = Path(s).stem for q in questions: if q.stem == key: -- cgit v1.2.3