Spaces:
Runtime error
Runtime error
natexcvi
commited on
Commit
•
0e1a6eb
1
Parent(s):
bffc609
Add log message response dummy endpoint
Browse files
main.py
CHANGED
@@ -3,8 +3,7 @@ import random
|
|
3 |
import statistics
|
4 |
from typing import Dict, Optional
|
5 |
|
6 |
-
from fastapi import
|
7 |
-
status)
|
8 |
|
9 |
from schema import *
|
10 |
from telegram_bot import checkup_messages, send_message_to_user
|
@@ -105,3 +104,9 @@ async def get_patient_issues(patient_id: str) -> list[PatientIssue] | Response:
|
|
105 |
if patient_id not in db.issues:
|
106 |
return Response(status_code=status.HTTP_404_NOT_FOUND)
|
107 |
return db.issues[patient_id]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import statistics
|
4 |
from typing import Dict, Optional
|
5 |
|
6 |
+
from fastapi import BackgroundTasks, Body, FastAPI, Response, UploadFile, status
|
|
|
7 |
|
8 |
from schema import *
|
9 |
from telegram_bot import checkup_messages, send_message_to_user
|
|
|
104 |
if patient_id not in db.issues:
|
105 |
return Response(status_code=status.HTTP_404_NOT_FOUND)
|
106 |
return db.issues[patient_id]
|
107 |
+
|
108 |
+
|
109 |
+
@app.post("/log-message-response")
|
110 |
+
async def log_message_response(msg: dict = Body(...)):
|
111 |
+
print(msg)
|
112 |
+
return Response(status_code=status.HTTP_202_ACCEPTED)
|