Skip to content

Commit

Permalink
Allow extra DB stats to return more than one row
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Jun 2, 2017
1 parent 2351df6 commit fab4b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions c2cwsgiutils_stats_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit fab4b52

Please sign in to comment.