🩹 Fix space issue

parent 035414ce
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -10,3 +10,6 @@
sudo docker-compose up -d
```
2. Готово
## TODO
- [ ] Namesakes issue
......@@ -27,6 +27,7 @@ async def stop():
@app.get("/schedule/{type}/{name}")
async def get_schedule(type: str, name: str):
name = name.replace("_", " ")
if type not in ("person", "student", "auditorium", "group"):
return Response(
status_code=status.HTTP_400_BAD_REQUEST,
......@@ -41,7 +42,7 @@ async def get_schedule(type: str, name: str):
content="Name wasn't found.",
media_type="text/plain"
)
user_id = search_response[0]["id"]
user_id = search_response[0]["id"] # TODO Namesakes issue
begin, end = get_five_weeks()
data = await client.get_schedule(user_id, begin, end)
return Response(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment