Skip to content

Commit 259750a

Browse files
committed
clean up for release
1 parent f31a044 commit 259750a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [{name = "Jimmy Angelakos", email = "vyruss@hellug.gr"}]
1010
classifiers = ["Development Status :: 4 - Beta",
1111
"License :: OSI Approved :: PostgreSQL License",
1212
"Programming Language :: Python :: 3",]
13-
dependencies = ["argh", "contourpy", "cycler", "fonttools", "kiwisolver", "matplotlib", "numpy", "packaging", "Pillow", "psycopg2", "pyparsing", "python-dateutil", "six"]
13+
dependencies = ["argh", "contourpy", "cycler", "fonttools", "kiwisolver", "matplotlib", "numpy", "packaging", "pandas", "Pillow", "psycopg", "pyparsing", "python-dateutil", "six"]
1414

1515
[project.urls]
1616
"Homepage" = "https://github.com/vyruss/pg_statviz"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ kiwisolver==1.4.5
66
matplotlib==3.8.0
77
numpy==1.26.1
88
packaging==23.2
9+
pandas==2.2.2
910
Pillow==10.3.0
1011
psycopg==3.2.1
1112
pyparsing==3.1.1

src/pg_statviz/libs/info.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import logging
1010
from psycopg.errors import ExternalRoutineException, InsufficientPrivilege
11+
from psycopg.rows import dict_row
1112

1213

1314
logging.basicConfig()
@@ -31,7 +32,7 @@ def getinfo(conn):
3132
FROM PROGRAM 'hostname'""")
3233
cur.execute("""SELECT hostname
3334
FROM _info""")
34-
info['hostname'] = cur.fetchone()
35+
info['hostname'] = cur.fetchone()['hostname']
3536
cur.close()
3637
except (ExternalRoutineException, InsufficientPrivilege) as e:
3738
conn.rollback()

0 commit comments

Comments
 (0)