add updated_at field to links_to_validate table
This commit is contained in:
@@ -233,8 +233,10 @@ class MongoDbManager:
|
|||||||
|
|
||||||
def save_links_to_validate(self, link: str):
|
def save_links_to_validate(self, link: str):
|
||||||
collection_to_use = self.db[LINKS_TO_VALIDATE]
|
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={
|
collection_to_use.replace_one(filter={'_id': link, }, replacement={
|
||||||
u'url': link
|
u'url': link,
|
||||||
|
"updated_at": updated_at
|
||||||
},
|
},
|
||||||
upsert=True)
|
upsert=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user