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

Method set_end_time

app/tasks/github.py:73–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 utils.conn_db(self.collection).update_one(query, update)
72
73 def set_end_time(self):
74 query = {"_id": ObjectId(self.task_id)}
75 update = {"$set": {"end_time": utils.curr_date()}}
76 utils.conn_db(self.collection).update_one(query, update)
77
78 def statistic(self):
79 query = {"_id": ObjectId(self.task_id)}

Callers 4

runMethod · 0.95
github_task_taskFunction · 0.95
runMethod · 0.45
github_task_monitorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected