Added timestamp option
This commit is contained in:
1 parent
a1d3093241
commit
ae9cd00cce
2 files changed
+3
-2
No files matched your search
@@ -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()),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user