MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / getSettingsCache

Method getSettingsCache

src/Site/Site.py:136–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 return self.settings["serving"]
135
136 def getSettingsCache(self):
137 back = {}
138 back["bad_files"] = self.bad_files
139 back["hashfield"] = base64.b64encode(self.content_manager.hashfield.tobytes()).decode("ascii")
140 return back
141
142 # Max site size in MB
143 def getSizeLimit(self):

Callers 1

saveMethod · 0.45

Calls 1

tobytesMethod · 0.45

Tested by

no test coverage detected