Skip to content

Commit

Permalink
fix the condition to None check
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Mar 2, 2024
1 parent c760af0 commit 41e12cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask_se_practice.py
Expand Up @@ -415,7 +415,7 @@ def practice_add_new_report(current_thesis):
"Слишком короткое описание дальнейших планов, напишите подробнее!",
category="error",
)
elif not current_thesis.supervisor_id:
elif current_thesis.supervisor_id is None:
flash(
"Научный руководитель не найден, выберите научного руководителя в разделе \"Выбор темы\"!",
category="error",
Expand Down

0 comments on commit 41e12cc

Please sign in to comment.