June 25 - Implement reminder

This commit is contained in:
2026-06-25 16:52:19 -04:00
parent ea3648ad90
commit 2a75d17301
7 changed files with 263 additions and 1 deletions
+8
View File
@@ -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