Skip to content

Commit 19801d5

Browse files
Add Non-Blank Requirement to Major Projects
Fixes #26
1 parent b38b0fb commit 19801d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conditional/blueprints/major_project_submission.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def submit_major_project():
6060
name = post_data['projectName']
6161
description = post_data['projectDescription']
6262

63+
if name == "" or description == "":
64+
return jsonify({"success": False}), 400
6365
project = MajorProject(user_name, name, description)
6466

6567
db.session.add(project)

0 commit comments

Comments
 (0)