This commit is contained in:
Wolfgang Hottgenroth 2021-09-15 17:32:16 +02:00
commit 5744e84842
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -1,10 +1,13 @@
from db import dbGetMany, dbGetOne
from loguru import logger
from decimal import Decimal
import datetime
def perform(dbh, params):
try:
createdAt = params['created_at']
except KeyError:
createdAt = datetime.datetime.today().strftime("%Y-%m-%d")
tenants = dbGetMany(dbh, { "statement": "SELECT * FROM tenant_t", "params": () })
for tenant in tenants: