v0.11.0 - Added a block so no bins can be counted until a master file has been uploaded.

This commit is contained in:
Javier
2026-01-25 20:17:37 -06:00
parent f7e25c8d1f
commit ff577a6cbf
6 changed files with 19 additions and 4 deletions

6
app.py
View File

@@ -17,7 +17,7 @@ from blueprints.data_imports import data_imports_bp
from blueprints.users import users_bp
from blueprints.sessions import sessions_bp
from blueprints.admin_locations import admin_locations_bp
from blueprints.counting import counting_bp # Add this import
from blueprints.counting import counting_bp
from utils import login_required
# Register Blueprints
@@ -25,7 +25,7 @@ app.register_blueprint(data_imports_bp)
app.register_blueprint(users_bp)
app.register_blueprint(sessions_bp)
app.register_blueprint(admin_locations_bp)
app.register_blueprint(counting_bp) # Add this registration
app.register_blueprint(counting_bp)
# V1.0: Use environment variable for production, fallback to demo key for development
app.secret_key = os.environ.get('SCANLOOK_SECRET_KEY', 'scanlook-demo-key-replace-for-production')
@@ -36,7 +36,7 @@ app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(hours=1)
# 1. Define the version
APP_VERSION = '0.10.0'
APP_VERSION = '0.11.0'
# 2. Inject it into all templates automatically
@app.context_processor