(self, user, tags, productId)
| 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: |
no test coverage detected