fix(index): fixed startpage error

This commit is contained in:
FrederikBaerentsen
2025-10-10 11:25:56 +02:00
parent b02f851865
commit 0f45192f8e
3 changed files with 8 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ from flask import Blueprint, render_template
from .exceptions import exception_handler
from ..minifigure_list import BrickMinifigureList
from ..set_status_list import BrickSetStatusList
from ..set_list import BrickSetList, set_metadata_lists
index_page = Blueprint('index', __name__)
@@ -15,7 +14,6 @@ def index() -> str:
return render_template(
'index.html',
brickset_collection=BrickSetList().last(),
brickset_statuses=BrickSetStatusList.list(),
minifigure_collection=BrickMinifigureList().last(),
**set_metadata_lists(as_class=True)
)

View File

@@ -20,3 +20,4 @@ services:
BK_RETIRED_SETS_PATH: /local/retired_sets.csv
BK_SETS_FOLDER: sets
BK_THEMES_PATH: /local/themes.csv
env_file: .env

7
run-local.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -a
source .env
set +a
gunicorn --bind "0.0.0.0:3334" "wsgi:application" --worker-class "gevent" --workers 1 --reload "$@"