From 21a7780c39554901215acc2a72e46156d7a6d2bc Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 8 Sep 2022 07:22:43 +0200 Subject: [PATCH] Added automatic page refresh to the HTTP configuration status page. --- bin/uplink | 4 +++- uplink/httpserver.py | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/uplink b/bin/uplink index 84e0732..8d347c9 100755 --- a/bin/uplink +++ b/bin/uplink @@ -37,7 +37,9 @@ import time from uplink.configuration import Configuration from uplink.uplink import Uplink -__version__ = '0.8.1' +# MAJOR_RELEASE.MAJOR CHANGES.MINOR_CHANGES.BUG_FIXES +# Related to: https://wiki.unixpeople.org/linux_kernel_version_numbering +__version__ = '0.8.2' __author__ = 'Johannes Findeisen ' logger = logging.getLogger('uplink') diff --git a/uplink/httpserver.py b/uplink/httpserver.py index e042360..e9ad23f 100644 --- a/uplink/httpserver.py +++ b/uplink/httpserver.py @@ -40,9 +40,10 @@ class HTTPServer: @cherrypy.expose def config(self): - return '
' + \
+        return '
' + \
                json.dumps(vars(self.__configuration), sort_keys=True, indent=4) + \
-               '
' + '
' @cherrypy.expose def playground(self):