Add combat trend sparklines for enemy kills and dungeon runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-22 14:12:18 +02:00
parent eb7dbea2ee
commit be7fa072f7
6 changed files with 215 additions and 12 deletions
+7
View File
@@ -26,6 +26,7 @@ from db import (
goals_overview,
import_save,
init_db,
combat_timeline,
inventory_timeline,
list_goal_groups,
list_goals_structured,
@@ -188,6 +189,12 @@ def api_skill_timeline(viewer_id: str):
return jsonify(skill_timeline(db_path=db_path))
@viewer_bp.route("/api/combat/timeline")
def api_combat_timeline(viewer_id: str):
db_path = _resolve_viewer_db(viewer_id)
return jsonify(combat_timeline(db_path=db_path))
@viewer_bp.route("/api/goals/overview")
def api_goals_overview(viewer_id: str):
db_path = _resolve_viewer_db(viewer_id)