Skip to content

Commit

Permalink
Документация (#75)
Browse files Browse the repository at this point in the history
## Изменения
Добавил документацию функции update_list.

## Check-List
<!-- После сохранения у следующих полей появятся галочки, которые нужно
проставить мышкой -->
- [x] Вы проверили свой код перед отправкой запроса?
- [x] Вы написали тесты к реализованным функциям?
- [x] Вы не забыли применить форматирование `black` и `isort` для
_Back-End_ или `Prettier` для _Front-End_?

---------

Co-authored-by: Morozov Artem <126605382+Temmmmmo@users.noreply.github.com>
  • Loading branch information
Rum-and-tea and Temmmmmo committed Apr 10, 2024
1 parent 0e22e17 commit 3b21d6c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/versions/09929802c3e1_add_student_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-09-02 21:29:38.712544
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/44494b133481_print_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-11-10 19:26:16.570560
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-04-29 19:38:02.676614
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/692fe4f50da7_upper_surnames.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-11-19 16:28:09.570088
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/a68c6bb2972c_add_document_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-07-26 22:56:57.273888
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/d63e9f7661dd_page_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-15 18:38:40.964981
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/e364ba4ae2f7_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2021-11-02 18:34:31.049423
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migrations/versions/f6fb6304fb74_add_print_fact.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-04-29 21:36:34.034457
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions print_service/routes/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def update_list(
input: UpdateUserList,
user=Depends(UnionAuth(scopes=["print.user.create", "print.user.update", "print.user.delete"])),
):
"""Обновляет данные существующего пользователя или добавляет нового, если его нет."""
logger.info(f"User {user} updated list")

union_numbers = [user.union_number for user in input.users if user.union_number is not None]
Expand Down

0 comments on commit 3b21d6c

Please sign in to comment.