MCPcopy
hub / github.com/DropsDevopsOrg/ECommerceCrawlers / select_one_update

Method select_one_update

SohuNewCrawler/db.py:89–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 def select_one(self):
88 return self.collection.find_one({"flag":1})
89 def select_one_update(self):
90 return self.collection.find_one_and_update({"flag": 0}, {'$set': {"flag": 1}})
91
92 def select_by_time(self,time):
93 return self.collection.find({"time":time})

Callers 1

save_size_txtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected