add updated_at field to links_to_validate table

This commit is contained in:
2023-01-04 23:29:07 +01:00
parent bfd54c1f1f
commit 12202b1baf
+3 -1
View File
@@ -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)