Rifiniture (M8): avvisi su striscia, notifiche di Windows e Telegram con controllo dello spazio su disco; «Esporta l'elenco» della libreria; avvisi e ricette sospese in Attività; guida per il wiki in docs/guida
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
50 files changed
+3980
-28
No files matched your search
@@ -460,10 +460,11 @@ internal sealed class EventStore(FebeDatabase db) : IEventStore
|
||||
{
|
||||
var command = c.Command(string.Empty);
|
||||
var list = command.AddList("sv", severities);
|
||||
var codes = query.Codes is { } wanted ? $" AND code IN ({command.AddList("cd", wanted)})" : string.Empty;
|
||||
command.CommandText = $"""
|
||||
SELECT {Columns} FROM event
|
||||
WHERE (@before IS NULL OR id < @before) AND (@a IS NULL OR account_id = @a) AND severity IN ({list})
|
||||
AND (@f IS NULL OR at >= @f) AND (@t IS NULL OR at < @t)
|
||||
AND (@f IS NULL OR at >= @f) AND (@t IS NULL OR at < @t){codes}
|
||||
ORDER BY id DESC LIMIT @limit
|
||||
""";
|
||||
command.With("@before", Sql.Int(query.BeforeId)).With("@a", Sql.Int(query.AccountId))
|
||||
|
||||
Reference in new issue
Block a user