Ali2206 commited on
Commit
6bf4e8a
·
verified ·
1 Parent(s): 27a8b0f

Update api/routes.py

Browse files
Files changed (1) hide show
  1. api/routes.py +4 -4
api/routes.py CHANGED
@@ -1,4 +1,4 @@
1
- from fastapi import APIRouter, HTTPException, Depends, Body, Query, status, Response
2
  from fastapi.security import OAuth2PasswordRequestForm
3
  from models.schemas import SignupForm, TokenResponse, PatientCreate, DoctorCreate, AppointmentCreate
4
  from db.mongo import users_collection, patients_collection, appointments_collection
@@ -417,7 +417,7 @@ async def list_patients(
417
  query[f"notes.{min_notes-1}"] = {"$exists": True}
418
 
419
  if min_conditions > 0:
420
- query[f"conditions.{min_conditions-1}"] = {"$exists": True"}
421
 
422
  # Removed $slice to return full arrays for the frontend
423
  projection = {
@@ -731,8 +731,8 @@ $encounters
731
  \end{document}
732
  """)
733
 
734
- # Set the generated_on date to 04:55 PM CET, May 16, 2025
735
- generated_on = datetime.strptime("2025-05-16 16:55:00+01:00", "%Y-%m-%d %H:%M:%S%z").strftime("%A, %B %d, %Y at %I:%M %p")
736
 
737
  latex_filled = latex_template.substitute(
738
  generated_on=generated_on,
 
1
+ from fastapi import APIRouter, HTTPException, Depends, Query, status, Response
2
  from fastapi.security import OAuth2PasswordRequestForm
3
  from models.schemas import SignupForm, TokenResponse, PatientCreate, DoctorCreate, AppointmentCreate
4
  from db.mongo import users_collection, patients_collection, appointments_collection
 
417
  query[f"notes.{min_notes-1}"] = {"$exists": True}
418
 
419
  if min_conditions > 0:
420
+ query[f"conditions.{min_conditions-1}"] = {"$exists": True}
421
 
422
  # Removed $slice to return full arrays for the frontend
423
  projection = {
 
731
  \end{document}
732
  """)
733
 
734
+ # Set the generated_on date to 05:08 PM CET, May 16, 2025
735
+ generated_on = datetime.strptime("2025-05-16 17:08:00+01:00", "%Y-%m-%d %H:%M:%S%z").strftime("%A, %B %d, %Y at %I:%M %p")
736
 
737
  latex_filled = latex_template.substitute(
738
  generated_on=generated_on,