From fab4b521ff6bca49440482109b42207bac7777ea Mon Sep 17 00:00:00 2001 From: Patrick Valsecchi Date: Fri, 2 Jun 2017 15:12:40 +0200 Subject: [PATCH] Allow extra DB stats to return more than one row --- c2cwsgiutils_stats_db.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c2cwsgiutils_stats_db.py b/c2cwsgiutils_stats_db.py index e599ee4ba..d68ff9877 100755 --- a/c2cwsgiutils_stats_db.py +++ b/c2cwsgiutils_stats_db.py @@ -59,8 +59,8 @@ def do_table(session, schema, table, reporter): def do_extra(session, extra, reporter): - metric, count = session.execute(extra).fetchone() - reporter.do_report(str(metric).split("."), count) + for metric, count in session.execute(extra): + reporter.do_report(str(metric).split("."), count) def main(): diff --git a/setup.py b/setup.py index 34aa8bff1..670d05030 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages -VERSION = '0.13.0' +VERSION = '0.13.1' HERE = os.path.abspath(os.path.dirname(__file__)) INSTALL_REQUIRES = open(os.path.join(HERE, 'rel_requirements.txt')).read().splitlines()