Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Oct 6, 2023
1 parent 8db2181 commit b5d51da
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main():
print(
"Created config.yml from template. Please edit the file and run the script again."
)
return
sys.exit(255)

with open("config.yml", "r") as ymlfile:
cfg = yaml.load(ymlfile, Loader=yaml.FullLoader)
Expand Down Expand Up @@ -77,14 +77,14 @@ def main():
print(
"No submission files found in ./data folder. Please download the data export and place the files in the ./data folder."
)
exit(255)
sys.exit(255)
most_recent_submission_file = submission_files[0]

if len(exercise_tasks_files) == 0:
print(
"No exercise tasks files found in ./data folder. Please download the data export and place the files in the ./data folder."
)
exit(255)
sys.exit(255)
most_recent_exercisetasks_file = exercise_tasks_files[0]

print(f'Using the file "{most_recent_submission_file}" as input for submissions.')
Expand Down Expand Up @@ -180,13 +180,6 @@ def main():
print("item_answer", item_answer)
raise e

# pprint(data_json)

# if 1==1:
# exit(0)

# print(df_submisssions)

### Writing the result
# extract all keys from the nested dict
all_keys = set()
Expand Down

0 comments on commit b5d51da

Please sign in to comment.