params added to getMany

This commit is contained in:
2021-01-17 14:45:11 +01:00
parent 878ff31a52
commit b0daebe699
4 changed files with 5 additions and 5 deletions

View File

@ -28,12 +28,12 @@ def getConnection():
return pool.get_connection()
def getMany(stmt):
def getMany(stmt, params, objName):
try:
dbh = getConnection()
objs = []
cur = dbh.cursor(dictionary=True)
cur.execute(stmt)
cur.execute(stmt, params)
for obj in cur:
objs.append(obj)
return objs