mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
Tweak remote tracking
This commit is contained in:
parent
1f7472049a
commit
f26b4eabe3
1 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,11 @@ def track_successful_send(url: str) -> None:
|
|||
url,
|
||||
{
|
||||
"$inc": {"successful_send": 1},
|
||||
"$set": {"last_successful_contact": now_, "last_contact": now_},
|
||||
"$set": {
|
||||
"last_successful_contact": now_,
|
||||
"last_successful_send": now_,
|
||||
"last_contact": now_,
|
||||
},
|
||||
},
|
||||
)
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue