From 102ea176cbf782921afe464e7aa86ad77f178831 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 20 Mar 2026 20:32:19 -0500 Subject: [PATCH] fix: add node type to the App Info page --- src/wuttaweb/views/settings.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/wuttaweb/views/settings.py b/src/wuttaweb/views/settings.py index 04a529e..e2bfead 100644 --- a/src/wuttaweb/views/settings.py +++ b/src/wuttaweb/views/settings.py @@ -80,7 +80,7 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method return context def get_appinfo_dict(self): # pylint: disable=missing-function-docstring - return OrderedDict( + appinfo = OrderedDict( [ ( "distribution", @@ -105,6 +105,13 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method "value": self.app.get_title(), }, ), + ( + "node_type", + { + "label": "Node Type", + "value": self.app.get_node_type(), + }, + ), ( "node_title", { @@ -147,6 +154,14 @@ class AppInfoView(MasterView): # pylint: disable=abstract-method ] ) + if not appinfo["node_type"]["value"]: + del appinfo["node_type"] + + if appinfo["app_title"]["value"] == appinfo["node_title"]["value"]: + del appinfo["node_title"] + + return appinfo + def get_grid_data( # pylint: disable=empty-docstring self, columns=None, session=None ):