Skip to content

Commit b22bfdf

Browse files
Only the python version should be shown in the about dialog. #8249
1 parent 6dab60d commit b22bfdf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/pgadmin/about/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def index():
7676
info['version'] = config.APP_VERSION
7777
info['admin'] = admin
7878
info['current_user'] = current_user.email
79-
info['python_version'] = sys.version
79+
info['python_version'] = sys.version.split(" ", maxsplit=1)[0]
8080

8181
if admin:
8282
settings = ""

web/pgadmin/about/static/js/AboutComponent.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ export default function AboutComponent() {
5151
</Grid>
5252
<Grid container spacing={0} style={{marginBottom: '8px'}}>
5353
<Grid item lg={3} md={3} sm={3} xs={12}>
54-
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Commit:')}</InputLabel>
54+
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Commit')}</InputLabel>
5555
</Grid>
5656
<Grid item lg={9} md={9} sm={9} xs={12}>
5757
<InputLabel>{aboutData.commit_hash}</InputLabel>
5858
</Grid>
5959
</Grid>
6060
<Grid container spacing={0} style={{marginBottom: '8px'}}>
6161
<Grid item lg={3} md={3} sm={3} xs={12}>
62-
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Python Version:')}</InputLabel>
62+
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Python Version')}</InputLabel>
6363
</Grid>
6464
<Grid item lg={9} md={9} sm={9} xs={12}>
6565
<InputLabel>{aboutData.python_version}</InputLabel>

0 commit comments

Comments
 (0)