MCPcopy Index your code
hub / github.com/geekcomputers/Python / deletProcess

Method deletProcess

insta_monitering/insta_datafetcher.py:323–339  ·  view source on GitHub ↗
(self, user, tags, productId)

Source from the content-addressed store, hash-verified

321 print("error::startPoress::>>", sys.exc_info()[1])
322
323 def deletProcess(self, user, tags, productId):
324 mon = pymongo.MongoClient(host=config.host, port=config.mongoPort)
325 try:
326 db = mon["insta_process"]
327 collection = db["process"]
328 temp = {}
329 temp["user"] = user
330 temp["tags"] = tags
331 temp["productId"] = productId
332 collection.delete_one(temp)
333 except Exception as err:
334 print(f"exception : {err}\n")
335 print("error::deletProcess:>>", sys.exc_info()[1])
336 finally:
337 mon.close()
338 print("deleted - task", temp)
339 return True
340
341 def statusCheck(self, user, tags, productId):
342 mon = pymongo.MongoClient(host=config.host, port=config.mongoPort)

Callers 1

getMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected