Skip to content

Commit 2254c3c

Browse files
committed
EventUser fixed with format
1 parent 7d4d213 commit 2254c3c

39 files changed

Lines changed: 23 additions & 59 deletions

calendar_backend/__init__.py

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

3-
43
__version__ = os.getenv('APP_VERSION', 'dev')

calendar_backend/__main__.py

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

55
from calendar_backend.routes import app
66

7-
87
logging.basicConfig(
98
filename=f'logger_{__name__}.log',
109
level=logging.DEBUG,
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from . import utils
22

3-
43
__all__ = ("utils",)

calendar_backend/methods/image.py

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

17-
1817
settings = get_settings()
1918

2019

calendar_backend/methods/list_calendar.py

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

1717
from . import utils
1818

19-
2019
settings = get_settings()
2120
logger = logging.getLogger(__name__)
2221

calendar_backend/methods/utils.py

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

6-
76
settings = get_settings()
87

98

calendar_backend/models/__init__.py

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

16-
1716
__all__ = [
1817
"Credentials",
1918
"Group",
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from .base import app
22

3-
43
__all__ = ["app"]

calendar_backend/routes/base.py

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

31-
3231
settings = get_settings()
3332
logger = logging.getLogger(__name__)
3433
app = FastAPI(
3534
title='Сервис расписания',
36-
description=dedent(
37-
"""
35+
description=dedent("""
3836
API для работы с календарем физфака.
3937
4038
Пример работы на питоне(Создание Room):
@@ -49,8 +47,7 @@
4947
headers={"Authorization": f"ТокенАвторизацииТвойФФ"}
5048
)
5149
```
52-
"""
53-
),
50+
"""),
5451
version=__version__,
5552
# Настраиваем интернет документацию
5653
root_path=settings.ROOT_PATH if __version__ != 'dev' else '',

calendar_backend/routes/event/comment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from calendar_backend.routes.models.event import CommentEventGet, EventCommentPatch, EventCommentPost, EventComments
99
from calendar_backend.settings import get_settings
1010

11-
1211
settings = get_settings()
1312
router = APIRouter(prefix="/event/{event_id}/comment", tags=["Event: Comment"])
1413

0 commit comments

Comments
 (0)