Binrushd-Medical-Center commited on
Commit
2ba574c
·
verified ·
1 Parent(s): a0b0ae3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -5
main.py CHANGED
@@ -554,13 +554,10 @@ def list_doctors(limit: int = 100, offset: int = 0, order: str = "id.asc"):
554
 
555
  @app.get("/api/doctors/{doctor_id}/details")
556
  def doctor_details(doctor_id: int):
557
- """
558
- يرجّع تفاصيل دكتور واحد من جدول doctor_details حسب الـ id.
559
- """
560
  params = {
561
  **eq("doctor_id", doctor_id),
562
- "select": "doctor_id,gender,qualifications,experience,"
563
- "%22Speciality%22,%22Degree%22,phone,email,highligthed,branches,created_at",
564
  "limit": "1",
565
  }
566
  rows = supa_select("doctor_details", params)
 
554
 
555
  @app.get("/api/doctors/{doctor_id}/details")
556
  def doctor_details(doctor_id: int):
 
 
 
557
  params = {
558
  **eq("doctor_id", doctor_id),
559
+ # لاحظ الأقواس المزدوجة العادية حوالين الأعمدة المركّبة
560
+ "select": 'doctor_id,gender,qualifications,experience,"Speciality","Degree",phone,email,highligthed,branches,created_at',
561
  "limit": "1",
562
  }
563
  rows = supa_select("doctor_details", params)