Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Мирошниченко Лев Игоревич
RUZ Calendar
Commits
da40e848
Commit
da40e848
authored
2 years ago
by
Мирошниченко Лев Игоревич
Browse files
Options
Download
Patches
Plain Diff
🩹 Fix space issue
parent
035414ce
main
dev
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-0
README.md
src/main.py
+2
-1
src/main.py
with
5 additions
and
1 deletion
+5
-1
README.md
+
3
−
0
View file @
da40e848
...
...
@@ -10,3 +10,6 @@
sudo docker-compose up -d
```
2.
Готово
## TODO
-
[ ] Namesakes issue
This diff is collapsed.
Click to expand it.
src/main.py
+
2
−
1
View file @
da40e848
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets