forked from Alexey/DAS_2024_1
Странный комменатрии оставленный в 5 утра...
This commit is contained in:
parent
761cc83ebd
commit
bde242318f
@ -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']})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user