use uvicorn directly, fix f-string error

This commit is contained in:
Micha Albert 2024-09-14 21:48:04 -04:00
parent 743692cac9
commit 5b17a6aef5
No known key found for this signature in database
GPG key ID: 33149159A417BBCE
2 changed files with 2 additions and 2 deletions

View file

@ -20,4 +20,4 @@ RUN prisma generate
COPY main.py . COPY main.py .
CMD [ "fastapi", "run", "main.py" ] CMD [ "uvicorn", "main:api", "--log-level", "warning", "--workers", "4", "--host", "0.0.0.0", "--port", "8000" ]

View file

@ -275,7 +275,7 @@ async def github_callback(request: Request):
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": f"{'\n'.join([recording + ' for ' + str(get_recording_duration(recording, user_stream_key)) + 'minutes' for recording in stream_recs])}", # type: ignore "text": '\n'.join([recording + ' for ' + str(get_recording_duration(recording, user_stream_key)) + 'minutes' for recording in stream_recs]), # type: ignore
}, },
}, },
{ {