fix planner

This commit is contained in:
Mateusz Gruszczyński
2026-06-17 09:02:41 +02:00
parent 99692ef217
commit b98505fd31
65 changed files with 82 additions and 279 deletions
+4 -7
View File
@@ -1,14 +1,11 @@
from __future__ import annotations
from flask import Blueprint, jsonify, request
from flask import jsonify, request
from ._shared import request_profile
from ..services import preferences, download_planner, poller_control
from ._shared import bp, request_profile
from ..services import download_planner, poller_control
from ..services.auth import current_user_id
bp = Blueprint("planner_api", __name__, url_prefix="/api")
def ok(payload=None):
data = {"ok": True}
if payload:
@@ -33,7 +30,7 @@ def download_planner_get():
@bp.post("/download-planner")
def download_planner_save():
# Note: Planner settings are saved through one canonical endpoint to avoid hidden frontend/backend fallbacks.
# Note: Planner settings are saved through one canonical endpoint to keep the frontend/backend contract explicit.
profile, error = _profile_or_error()
if error:
return error