From b22bfdf74be6e4c79b90db15652f2b60e1e742df Mon Sep 17 00:00:00 2001 From: Rohit Bhati Date: Fri, 3 Jan 2025 20:49:56 +0530 Subject: [PATCH] Only the python version should be shown in the about dialog. #8249 --- web/pgadmin/about/__init__.py | 2 +- web/pgadmin/about/static/js/AboutComponent.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/pgadmin/about/__init__.py b/web/pgadmin/about/__init__.py index e9a18ca8564..1b233f71e47 100644 --- a/web/pgadmin/about/__init__.py +++ b/web/pgadmin/about/__init__.py @@ -76,7 +76,7 @@ def index(): info['version'] = config.APP_VERSION info['admin'] = admin info['current_user'] = current_user.email - info['python_version'] = sys.version + info['python_version'] = sys.version.split(" ", maxsplit=1)[0] if admin: settings = "" diff --git a/web/pgadmin/about/static/js/AboutComponent.jsx b/web/pgadmin/about/static/js/AboutComponent.jsx index 35445157f8e..cc69e1aca83 100644 --- a/web/pgadmin/about/static/js/AboutComponent.jsx +++ b/web/pgadmin/about/static/js/AboutComponent.jsx @@ -51,7 +51,7 @@ export default function AboutComponent() { - {gettext('Commit:')} + {gettext('Commit')} {aboutData.commit_hash} @@ -59,7 +59,7 @@ export default function AboutComponent() { - {gettext('Python Version:')} + {gettext('Python Version')} {aboutData.python_version}