Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ def upload_report():
|
|
195 |
|
196 |
if file:
|
197 |
filename = secure_filename(file.filename)
|
198 |
-
patient_folder = REPORTS_ROOT / f"
|
199 |
os.makedirs(patient_folder, exist_ok=True)
|
200 |
file_path = patient_folder / filename
|
201 |
file.save(file_path)
|
@@ -238,7 +238,7 @@ def chat():
|
|
238 |
|
239 |
# If a PID is known, load the patient reports.
|
240 |
if patient_id:
|
241 |
-
patient_folder = REPORTS_ROOT / f"
|
242 |
if patient_folder.exists() and patient_folder.is_dir():
|
243 |
for fname in sorted(os.listdir(patient_folder)):
|
244 |
file_path = patient_folder / fname
|
|
|
195 |
|
196 |
if file:
|
197 |
filename = secure_filename(file.filename)
|
198 |
+
patient_folder = REPORTS_ROOT / f"{patient_id}"
|
199 |
os.makedirs(patient_folder, exist_ok=True)
|
200 |
file_path = patient_folder / filename
|
201 |
file.save(file_path)
|
|
|
238 |
|
239 |
# If a PID is known, load the patient reports.
|
240 |
if patient_id:
|
241 |
+
patient_folder = REPORTS_ROOT / f"{patient_id}"
|
242 |
if patient_folder.exists() and patient_folder.is_dir():
|
243 |
for fname in sorted(os.listdir(patient_folder)):
|
244 |
file_path = patient_folder / fname
|