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

Method _processstart

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

Source from the content-addressed store, hash-verified

288 return value
289
290 def _processstart(self, user, tags, productId):
291 mon = pymongo.MongoClient(host=config.host, port=config.mongoPort)
292 try:
293 db = mon["insta_process"]
294 collection = db["process"]
295 temp = {}
296 temp["user"] = user
297 temp["tags"] = tags
298 temp["productId"] = productId
299 collection.insert(temp)
300 except Exception as err:
301 print(f"execption : {err}\n")
302 print("error::processstart>>", sys.exc_info()[1])
303 finally:
304 mon.close()
305
306 def startprocess(self, user, tags, type, productId):
307 try:

Callers 1

startprocessMethod · 0.95

Calls 2

insertMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected