summaryrefslogtreecommitdiff
path: root/python/pgq/status.py
diff options
context:
space:
mode:
authorMarko Kreen2013-09-18 13:02:46 +0000
committerMarko Kreen2013-09-18 13:02:46 +0000
commitdde487beaef91e9bb0ae2c5f24a457586f1b7c14 (patch)
treef8e0b142c63df3cfc19f4c2677c0813c8e201f55 /python/pgq/status.py
parent38b0f2d5bdc6b1a1ec64ebd0b43650042d910bf3 (diff)
Get rid of dictfetch*() usage, it's obsolete.
Diffstat (limited to 'python/pgq/status.py')
-rw-r--r--python/pgq/status.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pgq/status.py b/python/pgq/status.py
index eb6bc6be..ccaf0aa8 100644
--- a/python/pgq/status.py
+++ b/python/pgq/status.py
@@ -44,7 +44,7 @@ class PGQStatus(skytools.DBScript):
ival('q.queue_ticker_idle_period'),
)
cx.execute(q)
- event_rows = cx.dictfetchall()
+ event_rows = cx.fetchall()
q = """select queue_name, consumer_name, %s, %s, pending_events
from pgq.get_consumer_info()""" % (
@@ -52,7 +52,7 @@ class PGQStatus(skytools.DBScript):
ival('last_seen'),
)
cx.execute(q)
- consumer_rows = cx.dictfetchall()
+ consumer_rows = cx.fetchall()
print("\n%-33s %9s %13s %6s %6s %5s" % ('Event queue',
'Rotation', 'Ticker', 'TLag', 'EPS', 'New'))