Skip to content
Snippets Groups Projects
Commit ac281775 authored by Nathanael Santoso's avatar Nathanael Santoso
Browse files

fix

parent 333b250d
Branches
Tags
1 merge request!3fix
Pipeline #57124 passed with stages
in 1 minute and 4 seconds
This diff is collapsed.
......@@ -59,6 +59,8 @@ with open(f"{filename}.txt", "r") as file:
})
else:
raise Exception(f"Invalid line: {line}")
if current_problem is not None:
quiz["problems"].append(current_problem)
if quiz is not None:
with open(f"{filename}.json", "w") as file:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment