kashin_maxim_lab_3 #47

Merged
Alexey merged 5 commits from kashin_maxim_lab_3 into main 2024-10-07 23:39:35 +04:00
Showing only changes of commit bde242318f - Show all commits

View File

@ -16,7 +16,6 @@ def handle_faculties():
dto = request.get_json()['dto']
faculty = faculty_service.create_faculty(dto['name'], dto['university_id'])
# Проверьте, является ли faculty словарем или объектом
if isinstance(faculty, dict):
return jsonify({"id": faculty['id'], "name": faculty['name'], "university_id": faculty['university_id']})