params added to getMany
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user