fix planner
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user