feat: add new color variable for red and update SQL query in history management to include additional fields

This commit is contained in:
pandadev 2025-03-16 21:33:00 +01:00
parent ddd92a70e2
commit be1718d9a5
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
3 changed files with 8 additions and 2 deletions

View file

@ -71,8 +71,12 @@ pub async fn add_history_item(
Some(_) => {
sqlx
::query(
"UPDATE history SET timestamp = strftime('%Y-%m-%dT%H:%M:%f+00:00', 'now') WHERE content = ? AND content_type = ?"
"UPDATE history SET source = ?, source_icon = ?, timestamp = strftime('%Y-%m-%dT%H:%M:%f+00:00', 'now'), favicon = ?, language = ? WHERE content = ? AND content_type = ?"
)
.bind(&source)
.bind(&source_icon)
.bind(&favicon)
.bind(&language)
.bind(&content)
.bind(&content_type)
.execute(&*pool).await