Skip to content

Commit

Permalink
clean up for release
Browse files Browse the repository at this point in the history
  • Loading branch information
vyruss committed Jul 21, 2024
1 parent f31a044 commit 259750a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [{name = "Jimmy Angelakos", email = "[email protected]"}]
classifiers = ["Development Status :: 4 - Beta",
"License :: OSI Approved :: PostgreSQL License",
"Programming Language :: Python :: 3",]
dependencies = ["argh", "contourpy", "cycler", "fonttools", "kiwisolver", "matplotlib", "numpy", "packaging", "Pillow", "psycopg2", "pyparsing", "python-dateutil", "six"]
dependencies = ["argh", "contourpy", "cycler", "fonttools", "kiwisolver", "matplotlib", "numpy", "packaging", "pandas", "Pillow", "psycopg", "pyparsing", "python-dateutil", "six"]

[project.urls]
"Homepage" = "https://github.com/vyruss/pg_statviz"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ kiwisolver==1.4.5
matplotlib==3.8.0
numpy==1.26.1
packaging==23.2
pandas==2.2.2
Pillow==10.3.0
psycopg==3.2.1
pyparsing==3.1.1
Expand Down
3 changes: 2 additions & 1 deletion src/pg_statviz/libs/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import logging
from psycopg.errors import ExternalRoutineException, InsufficientPrivilege
from psycopg.rows import dict_row


logging.basicConfig()
Expand All @@ -31,7 +32,7 @@ def getinfo(conn):
FROM PROGRAM 'hostname'""")
cur.execute("""SELECT hostname
FROM _info""")
info['hostname'] = cur.fetchone()
info['hostname'] = cur.fetchone()['hostname']
cur.close()
except (ExternalRoutineException, InsufficientPrivilege) as e:
conn.rollback()
Expand Down

0 comments on commit 259750a

Please sign in to comment.