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

Method getSetting

src/astroprint/plugin/services/system.py:63–74  ·  view source on GitHub ↗
(self, data, sendResponse=None)

Source from the content-addressed store, hash-verified

61
62 #read a key in config.yaml file
63 def getSetting(self, data, sendResponse=None):
64 if 'key' in data:
65 value = settings().get(data['key'])
66 if sendResponse:
67 sendResponse(value)
68
69 return value
70 else:
71 if sendResponse:
72 sendResponse('key_setting_error',True)
73
74 return False
75
76 def apiKey(self, sendResponse=None):
77 if sendResponse:

Callers

nothing calls this directly

Calls 2

settingsFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected