Spaces:
Sleeping
Sleeping
Update api/routes.py
Browse files- api/routes.py +1 -1
api/routes.py
CHANGED
|
@@ -153,7 +153,7 @@ async def create_appointment(data: AppointmentCreate, current_user: dict = Depen
|
|
| 153 |
appointment_doc = {
|
| 154 |
"patient_id": patient_user["_id"],
|
| 155 |
"doctor_id": ObjectId(data.doctor_id),
|
| 156 |
-
"date": data.date,
|
| 157 |
"time": data.time,
|
| 158 |
"reason": data.reason,
|
| 159 |
"created_by": current_user["email"],
|
|
|
|
| 153 |
appointment_doc = {
|
| 154 |
"patient_id": patient_user["_id"],
|
| 155 |
"doctor_id": ObjectId(data.doctor_id),
|
| 156 |
+
"date": data.date,"date": datetime.combine(data.date, datetime.min.time()),
|
| 157 |
"time": data.time,
|
| 158 |
"reason": data.reason,
|
| 159 |
"created_by": current_user["email"],
|