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 921b8b4 commit c0b9c48
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 @@ -71,7 +71,7 @@ def upload_major_project_files(user_dict=None):

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

for _, file in request.files.iterlists():
for _, file in request.files.lists():
safe_name = secure_filename(file.filename)
filename = f"/tmp/{user_dict['username']}/{safe_name}"

Expand Down

0 comments on commit c0b9c48

Please sign in to comment.