Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix practice_add_new_report] Add a condition to check if the practice supervisor is selected. #111

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/flask_se_practice.py
Expand Up @@ -415,6 +415,11 @@ def practice_add_new_report(current_thesis):
"Слишком короткое описание дальнейших планов, напишите подробнее!",
category="error",
)
elif current_thesis.supervisor_id is None:
flash(
'Научный руководитель не найден, выберите научного руководителя в разделе "Выбор темы"!',
category="error",
)
else:
new_report = ThesisReport(
was_done=was_done,
Expand Down