params added to getMany
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
from dbpool import getConnection, getMany, getOne
|
||||
|
||||
def get_objekte():
|
||||
return getMany("SELECT id, shortname, flaeche FROM objekt")
|
||||
return getMany("SELECT id, shortname, flaeche FROM objekt", [], "Objekt")
|
||||
|
||||
def get_objekt(id=None):
|
||||
return getOne("SELECT id, shortname, flaeche FROM objekt WHERE id = ?",
|
||||
|
Reference in New Issue
Block a user