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

Function getAdvancedSoftwareSettings

src/astroprint/api/settings.py:471–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

469@api.route("/settings/software/advanced", methods=["GET"])
470@restricted_access
471def getAdvancedSoftwareSettings():
472 s = settings()
473
474 return jsonify(
475 apiKey= {
476 "key": UI_API_KEY,
477 "regenerate": s.getBoolean(['api','regenerate'])
478 },
479 serialActivated= s.getBoolean(['serial', 'log']),
480 updateChannel= s.getInt(['software', 'channel'])
481 )
482
483@api.route("/settings/software/logs", methods=["GET"])
484@restricted_access

Callers

nothing calls this directly

Calls 3

settingsFunction · 0.90
getBooleanMethod · 0.80
getIntMethod · 0.80

Tested by

no test coverage detected