From bde242318f6f73b7acc5780706a5f205e0a79794 Mon Sep 17 00:00:00 2001 From: maksim Date: Sun, 6 Oct 2024 00:35:20 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D0=B0=D1=82=D1=80?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=B9=20=D0=B2=205=20=D1=83=D1=82=D1=80=D0=B0...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kashin_maxim_lab_3/faculty_service/app.py | 1 - 1 file changed, 1 deletion(-) 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']})