Skip to content

Commit

Permalink
Fix params arg not sent to execute() via connect_and_fetchall() (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-anezvigin authored and sfc-gh-afedorov committed May 4, 2020
1 parent 7e26e9b commit 8560834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runners/helpers/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ def connect_and_execute(queries=None):
return connection


def connect_and_fetchall(query):
def connect_and_fetchall(query, params=None):
ctx = connect()
return ctx, execute(query).fetchall()
return ctx, execute(query, params=params).fetchall()


def fetch_latest(table, col='event_time', where=''):
Expand Down

0 comments on commit 8560834

Please sign in to comment.