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

Function progressCb

src/astroprint/api/cloud.py:205–212  ·  view source on GitHub ↗
(progress)

Source from the content-addressed store, hash-verified

203 em = eventManager()
204
205 def progressCb(progress):
206 em.fire(
207 Events.CLOUD_DOWNLOAD, {
208 "type": "progress",
209 "id": print_file_id,
210 "progress": progress
211 }
212 )
213
214 def successCb(destFile, fileInfo):
215 if fileInfo is True:

Callers 3

download_print_fileMethod · 0.85
copyMethod · 0.85
runMethod · 0.85

Calls 1

fireMethod · 0.80

Tested by

no test coverage detected