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

Method getPrintFile

src/astroprint/cloud.py:654–665  ·  view source on GitHub ↗
(self, cloudId)

Source from the content-addressed store, hash-verified

652 return { 'error': 'invalid_data'}
653
654 def getPrintFile(self, cloudId):
655 if not self._print_file_store:
656 self._sync_print_file_store()
657
658 if self._print_file_store:
659 for x in self._print_file_store:
660 if x['id'] == cloudId:
661 return x
662 else:
663 return None
664 else:
665 return None
666
667 def startPrintCapture(self, filename):
668 data = {'name': filename}

Callers 1

getFileInfoMethod · 0.80

Calls 1

Tested by

no test coverage detected