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

Method actionDbRebuild

plugins/Sidebar/SidebarPlugin.py:770–777  ·  view source on GitHub ↗
(self, to)

Source from the content-addressed store, hash-verified

768 @flag.no_multiuser
769 @flag.admin
770 def actionDbRebuild(self, to):
771 try:
772 self.site.storage.rebuildDb()
773 except Exception as err:
774 return self.response(to, {"error": str(err)})
775
776
777 return self.response(to, "ok")

Callers

nothing calls this directly

Calls 2

rebuildDbMethod · 0.80
responseMethod · 0.45

Tested by

no test coverage detected