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

@ -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 = ?",