Skip to content

Commit 9513e1f

Browse files
committed
Merge branch 'EventUser_table' of https://github.com/profcomff/timetable-api into EventUser_table
2 parents f21e312 + 5254935 commit 9513e1f

41 files changed

Lines changed: 51 additions & 6 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- uses: isort/isort-action@master
7070
with:
7171
requirementsFiles: "requirements.txt requirements.dev.txt"
72-
- uses: psf/black@stable
72+
- uses: psf/black@23.11.0
7373
- name: Comment if linting failed
7474
if: failure()
7575
uses: thollander/actions-comment-pull-request@v2

calendar_backend/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import os
22

3+
34
__version__ = os.getenv('APP_VERSION', 'dev')

calendar_backend/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from calendar_backend.routes import app
66

7+
78
logging.basicConfig(
89
filename=f'logger_{__name__}.log',
910
level=logging.DEBUG,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from . import utils
22

3+
34
__all__ = ("utils",)

calendar_backend/methods/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from calendar_backend.models.db import ApproveStatuses, Lecturer, Photo
1515
from calendar_backend.settings import get_settings
1616

17+
1718
settings = get_settings()
1819

1920

calendar_backend/methods/list_calendar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
from . import utils
1818

19+
1920
settings = get_settings()
2021
logger = logging.getLogger(__name__)
2122

calendar_backend/methods/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from calendar_backend.models.db import Event, Group, Lecturer, Room
44
from calendar_backend.settings import get_settings
55

6+
67
settings = get_settings()
78

89

calendar_backend/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
Room,
1414
)
1515

16+
1617
__all__ = [
1718
"Credentials",
1819
"Group",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from .base import app
22

3+
34
__all__ = ["app"]

calendar_backend/routes/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
from .lecturer.photo_review import router as lecturer_photo_review_router
2929
from .room.room import router as room_router
3030

31+
3132
settings = get_settings()
3233
logger = logging.getLogger(__name__)
3334
app = FastAPI(
3435
title='Сервис расписания',
35-
description=dedent("""
36+
description=dedent(
37+
"""
3638
API для работы с календарем физфака.
3739
3840
Пример работы на питоне(Создание Room):
@@ -47,7 +49,8 @@
4749
headers={"Authorization": f"ТокенАвторизацииТвойФФ"}
4850
)
4951
```
50-
"""),
52+
"""
53+
),
5154
version=__version__,
5255
# Настраиваем интернет документацию
5356
root_path=settings.ROOT_PATH if __version__ != 'dev' else '',

0 commit comments

Comments
 (0)