feat: Metriken, Token-Auswertung und Protokollierung am Ende der Antwort (#1050)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -130,9 +130,8 @@ impl Store {
|
||||
return Ok(0);
|
||||
}
|
||||
// `zeit` ist ISO 8601 in UTC und sortiert deshalb als Text.
|
||||
let sql = format!(
|
||||
"DELETE FROM {table} WHERE zeit < strftime('%Y-%m-%dT%H:%M:%SZ', 'now', ?1)"
|
||||
);
|
||||
let sql =
|
||||
format!("DELETE FROM {table} WHERE zeit < strftime('%Y-%m-%dT%H:%M:%SZ', 'now', ?1)");
|
||||
self.connection()
|
||||
.execute(&sql, [format!("-{days} days")])
|
||||
.map_err(db)
|
||||
|
||||
Reference in New Issue
Block a user