Added timestamp option

This commit is contained in:
florian committed 2026-11-09 20:42:15 +01:00
1 parent a1d3093241
commit ae9cd00cce
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -82,6 +82,7 @@ class NotificationClient:
body: str,
link: str | None = None,
category: str = "utility",
timestamp: int | None = None,
*,
user_id: int = 1,
max_attempts: int = 5,
@@ -125,7 +126,7 @@ class NotificationClient:
"body": body,
"link": link,
"category": category,
"timestamp": int(time.time()),
"timestamp": timestamp if timestamp is not None else int(time.time()),
},
}