From 8722b83f1614f49ef05d9f8581300f7c46787921 Mon Sep 17 00:00:00 2001 From: ada-dmitry Date: Tue, 12 Dec 2023 13:52:36 +0300 Subject: [PATCH] s --- project/uml_uea/uea.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/project/uml_uea/uea.py b/project/uml_uea/uea.py index 1cb105d..60444fd 100644 --- a/project/uml_uea/uea.py +++ b/project/uml_uea/uea.py @@ -131,4 +131,17 @@ class DocAppointment: self.appointment_id, self.patient, self.status, self.time_of_appoint) conn.commit() finally: - self.database.close(conn, cur) \ No newline at end of file + self.database.close(conn, cur) + + +database = data_base() + +my_patient = patient(pat_id=11, name='Володимир Володимирович Володимир', email='volodimir@example.com', database=database) +my_patient.note_check() + +application = DocAppointment(application_id=1, patient=my_patient, status='waiting', database=database) +application.add2bd() + +doc = doctor(doc_id=11, doc_fio='Доктор Врачов Докторович', doc_specialization='Врач', doc_room=228, database=database) +doc.add2db() +