Skip to content

Commit c6bbfd7

Browse files
committed
fix(i18n): resolving conflicts, again
1 parent 8441cff commit c6bbfd7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/main.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
from app.dependencies import logger, MEDIA_PATH, STATIC_PATH, templates
99
from app.internal import daily_quotes, json_data_loader
1010
from app.internal.languages import set_ui_language
11-
from app.routers import (
12-
agenda, calendar, categories, dayview, email,
13-
event, invitation, profile, search, telegram, whatsapp,
14-
)
1511
from app.telegram.bot import telegram_bot
1612

1713

@@ -28,17 +24,20 @@ def create_tables(engine, psql_environment):
2824

2925
create_tables(engine, PSQL_ENVIRONMENT)
3026

31-
# This MUST come before the app.routers imports.
32-
set_ui_language()
33-
3427
app = FastAPI()
3528
app.mount("/static", StaticFiles(directory=STATIC_PATH), name="static")
3629
app.mount("/media", StaticFiles(directory=MEDIA_PATH), name="media")
3730
app.logger = logger
3831

32+
# This MUST come before the app.routers imports.
33+
set_ui_language()
3934

40-
json_data_loader.load_to_db(next(get_db()))
35+
from app.routers import ( # noqa: E402
36+
agenda, calendar, categories, dayview, email,
37+
event, invitation, profile, search, telegram, whatsapp,
38+
)
4139

40+
json_data_loader.load_to_db(next(get_db()))
4241

4342
routers_to_include = [
4443
agenda.router,

0 commit comments

Comments
 (0)