mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 21:24:05 +02:00
feat: add new color variable for red and update SQL query in history management to include additional fields
This commit is contained in:
parent
ddd92a70e2
commit
be1718d9a5
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue