move side templates and static files into root folder structure to not have it in the code folder
Build and Push Docker Container / build-and-push (push) Failing after 14m3s
Build and Push Docker Container / build-and-push (push) Failing after 14m3s
This commit is contained in:
@@ -21,7 +21,7 @@ def create_dashboard_blueprint(server:'Server') -> Blueprint:
|
||||
initial_summary = await server.dashboard_query.get_dashboard_summary()
|
||||
initial_games = await server.dashboard_query.get_dashboard_games(limit=100)
|
||||
return await render_template(
|
||||
'dashboard.html',
|
||||
'dashboard.htm',
|
||||
initial_game_id=initial_game_id,
|
||||
initial_summary=initial_summary,
|
||||
initial_games=initial_games,
|
||||
@@ -30,9 +30,7 @@ def create_dashboard_blueprint(server:'Server') -> Blueprint:
|
||||
@blueprint.get('/dashboard/customizations/<path:asset_path>')
|
||||
async def dashboard_customizations_asset(asset_path:str):
|
||||
customization_root = os.path.join(
|
||||
server.data_path,
|
||||
'server',
|
||||
'static',
|
||||
server.app.static_folder,
|
||||
'customizations',
|
||||
)
|
||||
return await send_from_directory(customization_root, asset_path)
|
||||
|
||||
Reference in New Issue
Block a user