MCPcopy Create free account
hub / github.com/C3ting/ARL / insert_task_stat

Method insert_task_stat

app/services/commonTask.py:18–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 5

common_runMethod · 0.95
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
insert_statMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected