Skip to content

Commit 921b8b4

Browse files
committed
You need to wrap keys in a list to read its length
1 parent 7a69ff7 commit 921b8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conditional/blueprints/major_project_submission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def upload_major_project_files(user_dict=None):
6666
log.info('Uploading Major Project File(s)')
6767

6868
print(request.files)
69-
if len(request.files.keys()) < 1:
69+
if len(list(request.files.keys())) < 1:
7070
return "No file", 400
7171

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

0 commit comments

Comments
 (0)