Permalink
Browse files

Name this to be more consistent with the other helpers

  • Loading branch information...
1 parent b63e16f commit f3f80cdd0f10a0cf84b0ee2aff78772e638907a2 @dstufft committed Feb 28, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 warehouse/db.py
View
@@ -24,7 +24,7 @@ def scalar(query, default=None):
A helper function that takes a query and returns a function that will query
the database and return a scalar.
"""
- def scalar_inner(model, *args, **kwargs):
+ def inner(model, *args, **kwargs):
with model.engine.connect() as conn:
val = conn.execute(query, *args, **kwargs).scalar()
@@ -33,7 +33,7 @@ def scalar_inner(model, *args, **kwargs):
else:
return val
- return scalar_inner
+ return inner
def rows(query, row_func=dict):

0 comments on commit f3f80cd

Please sign in to comment.