Added automatic page refresh to the HTTP configuration status page.

This commit is contained in:
Johannes Findeisen 2022-09-08 07:22:43 +02:00
commit 21a7780c39
2 changed files with 6 additions and 3 deletions

View file

@ -40,9 +40,10 @@ class HTTPServer:
@cherrypy.expose
def config(self):
return '<pre style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \
return '<html><head><meta http-equiv="refresh" content="60"></head><body><pre ' \
'style="border:2px solid black;background:#1d2021;color:#f0751a;">' + \
json.dumps(vars(self.__configuration), sort_keys=True, indent=4) + \
'</pre>'
'</pre></body></html>'
@cherrypy.expose
def playground(self):