default today to monthly payment

This commit is contained in:
Wolfgang Hottgenroth 2021-09-14 22:36:25 +02:00
parent 97dfcbe2fb
commit f559aba317
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469

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: