Fix generate-bills

This commit is contained in:
fnux 2020-03-05 11:27:43 +01:00
parent 0e6a6afd88
commit 4016c28c5f

View file

@ -9,8 +9,6 @@ from datetime import timedelta, date
from django.utils import timezone from django.utils import timezone
from uncloud_pay.models import Bill from uncloud_pay.models import Bill
BILL_PAYMENT_DELAY=timedelta(days=10)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class Command(BaseCommand): class Command(BaseCommand):
@ -31,8 +29,7 @@ class Command(BaseCommand):
Bill.generate_for( Bill.generate_for(
year=now.year, year=now.year,
month=now.month, month=now.month,
user=user, user=user)
allowed_delay=BILL_PAYMENT_DELAY)
# We're done for this round :-) # We're done for this round :-)
print("=> Done.") print("=> Done.")