mirror of
https://github.com/ada-dmitry/oop_ada.git
synced 2026-09-24 00:00:21 +00:00
s
This commit is contained in:
+14
-1
@@ -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)
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user