fix: update model_type on upsert conflict and scope close button to dialog

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-09 18:20:18 +02:00
parent c7003df0bb
commit 831ed302e9
2 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ class UsageTracker:
VALUES (?, ?, 1, ?, ?)
ON CONFLICT(model_name) DO UPDATE SET
count = count + 1,
last_seen = excluded.last_seen""",
last_seen = excluded.last_seen,
model_type = excluded.model_type""",
(model_name, model_type, now, now),
)
conn.commit()