Skip to content

Commit 6820b5d

Browse files
fix: formatting
1 parent b780dd9 commit 6820b5d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def init_app():
3939
init_routes()
4040

4141
# Mount the static directory
42-
app.add_static_files('/static', 'static')
43-
#app.mount("/static", StaticFiles(directory="static"), name="static")
42+
app.add_static_files("/static", "static")
43+
# app.mount("/static", StaticFiles(directory="static"), name="static")
4444

4545
return app
4646

src/ui/board_builder.py

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

55
from typing import Callable, cast
66

7-
from nicegui import ui, app
7+
from nicegui import app, ui
88

99
from src.config.constants import (
1010
BOARD_TILE_FONT,
@@ -219,4 +219,3 @@ def on_phrases_change(phrases):
219219
local_tile_buttons: TileButtonsDict = {}
220220
build_board(container, local_tile_buttons, toggle_tile, board, clicked_tiles)
221221
board_views["stream"] = (container, local_tile_buttons)
222-

src/ui/routes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import logging
66

7-
from nicegui import ui, app
7+
from nicegui import app, ui
88

99
from src.config.constants import HOME_BG_COLOR, STREAM_BG_COLOR
1010
from src.ui.board_builder import create_board_view
@@ -38,9 +38,10 @@ def stream_page():
3838
except Exception as e:
3939
logging.warning(f"Error creating timer: {e}")
4040

41+
4142
@app.get("/health")
4243
def health():
43-
return {'health': 'ok'}
44+
return {"health": "ok"}
4445

4546

4647
def init_routes():

0 commit comments

Comments
 (0)