Skip to content

Commit 19f643b

Browse files
committed
fix: remove unused param, correct doc string
1 parent 5cef4f9 commit 19f643b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

api/export_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def export_chats():
114114
rules = current_app.config.get("EXCLUSION_RULES") or []
115115

116116
# ── Database reading via service layer ────────────────────────────────
117-
with open_global_db(workspace_path) as (global_db, global_db_path):
117+
with open_global_db(workspace_path) as (global_db, _):
118118
if global_db is None:
119119
return jsonify({"error": "Cursor global storage not found"}), 404
120120

services/cli_tabs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ def get_cli_workspace_tabs(workspace_id: str):
1919
workspace_id: Workspace id with ``cli:`` prefix (e.g. ``cli:proj-1``).
2020
2121
Returns:
22-
``(jsonify({...}), status)`` tuple suitable for a Flask route handler.
23-
Status is 404 when the project is missing, 500 on unexpected errors.
22+
``flask.Response | tuple[flask.Response, int]`` suitable for a Flask route
23+
handler. Success returns ``jsonify({"tabs": ...})`` (plain ``Response``,
24+
status 200). Errors return ``(jsonify({"error": ...}), status)`` with
25+
404 when the project is missing or 500 on unexpected failure.
2426
"""
2527
try:
2628
project_id = workspace_id[4:]

0 commit comments

Comments
 (0)