Update main.py
Browse files
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 |
-
|
| 563 |
-
|
| 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)
|