June 25 - Implement reminder
This commit is contained in:
@@ -56,6 +56,7 @@ def create_app():
|
||||
from routes.user_dashboard import user_dashboard_bp
|
||||
from routes.ai_summary import ai_summary_bp
|
||||
from routes.bid_tracker import bid_tracker_bp
|
||||
from routes.internal import internal_bp
|
||||
|
||||
app.register_blueprint(auth_bp)
|
||||
app.register_blueprint(admin_dashboard_bp)
|
||||
@@ -68,6 +69,13 @@ def create_app():
|
||||
app.register_blueprint(user_dashboard_bp)
|
||||
app.register_blueprint(ai_summary_bp)
|
||||
app.register_blueprint(bid_tracker_bp)
|
||||
app.register_blueprint(internal_bp)
|
||||
|
||||
if not os.environ.get("CRON_SECRET"):
|
||||
logger.warning(
|
||||
"CRON_SECRET not set in .env — the /internal/cron/* endpoints are "
|
||||
"disabled. Set CRON_SECRET to enable automated shift reminders."
|
||||
)
|
||||
|
||||
# ── CSRF protection (Flask-WTF) ────────────────────────────────────────────
|
||||
from flask_wtf.csrf import CSRFProtect
|
||||
|
||||
Reference in New Issue
Block a user