From f26b4eabe3b83a64ac668d0bd4041dfd36975ad5 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 9 Aug 2019 00:08:22 +0200 Subject: [PATCH] Tweak remote tracking --- core/remote.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/remote.py b/core/remote.py index 9bdb659..820a89d 100644 --- a/core/remote.py +++ b/core/remote.py @@ -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