From 12202b1baf256095e388af1716dccddf7513a711 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Wed, 4 Jan 2023 23:29:07 +0100 Subject: [PATCH] add updated_at field to links_to_validate table --- src/db/mongo_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/mongo_manager.py b/src/db/mongo_manager.py index 64be987..1913a16 100644 --- a/src/db/mongo_manager.py +++ b/src/db/mongo_manager.py @@ -233,8 +233,10 @@ class MongoDbManager: def save_links_to_validate(self, link: str): collection_to_use = self.db[LINKS_TO_VALIDATE] + updated_at = time.strftime("%H:%M:%S", time.localtime()) collection_to_use.replace_one(filter={'_id': link, }, replacement={ - u'url': link + u'url': link, + "updated_at": updated_at }, upsert=True)