(self)
| 16 | self.task_id = task_id |
| 17 | |
| 18 | def insert_task_stat(self): |
| 19 | query = { |
| 20 | "_id": ObjectId(self.task_id) |
| 21 | } |
| 22 | |
| 23 | stat = utils.arl.task_statistic(self.task_id) |
| 24 | |
| 25 | logger.info("insert task stat") |
| 26 | |
| 27 | update = {"$set": {"statistic": stat}} |
| 28 | |
| 29 | utils.conn_db('task').update_one(query, update) |
| 30 | |
| 31 | def insert_finger_stat(self): |
| 32 | finger_stat_map = utils.arl.gen_stat_finger_map(self.task_id) |
no outgoing calls
no test coverage detected