diff --git a/kashin_maxim_lab_3/faculty_service/app.py b/kashin_maxim_lab_3/faculty_service/app.py index 4845397..97678eb 100644 --- a/kashin_maxim_lab_3/faculty_service/app.py +++ b/kashin_maxim_lab_3/faculty_service/app.py @@ -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']})