mirror of
https://gitea.baerentsen.space/FrederikBaerentsen/BrickTracker.git
synced 2025-12-25 10:49:39 -06:00
fix(index): fixed startpage error
This commit is contained in:
@@ -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)
|
||||
)
|
||||
|
||||
@@ -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
7
run-local.sh
Normal 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 "$@"
|
||||
Reference in New Issue
Block a user