MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getTask

Method getTask

src/astroprint/additionaltasks.py:59–64  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

57 self._logger.info("No additional Tasks present.")
58
59 def getTask(self, id):
60 for task in self.data:
61 if task['id'] == id:
62 return task
63
64 return None
65
66 def checkTaskFile(self, file):
67 filename = file.filename

Callers 2

checkTaskFileMethod · 0.95
removeTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected