Skip to content

Commit

Permalink
You need to wrap keys in a list to read its length
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobmaker55 committed Sep 6, 2024
1 parent 7a69ff7 commit 921b8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conditional/blueprints/major_project_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def upload_major_project_files(user_dict=None):
log.info('Uploading Major Project File(s)')

print(request.files)
if len(request.files.keys()) < 1:
if len(list(request.files.keys())) < 1:
return "No file", 400

# Temporarily save files to a place, to be uploaded on submit
Expand Down

0 comments on commit 921b8b4

Please sign in to comment.