From edd2a87915c3743ba5d2037e5afd67344d786c84 Mon Sep 17 00:00:00 2001 From: Cory Zue Date: Wed, 15 Jan 2025 09:18:16 +0200 Subject: [PATCH] whitespace/formatting --- .../warehouse/management/commands/update_warehouse.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ex-submodules/django-datawarehouse/warehouse/management/commands/update_warehouse.py b/ex-submodules/django-datawarehouse/warehouse/management/commands/update_warehouse.py index 594cd9a5a..f0a7fef29 100644 --- a/ex-submodules/django-datawarehouse/warehouse/management/commands/update_warehouse.py +++ b/ex-submodules/django-datawarehouse/warehouse/management/commands/update_warehouse.py @@ -5,7 +5,7 @@ from warehouse import runner class Command(BaseCommand): - + help = "Run the data warehouse" args = " " label = "" @@ -18,8 +18,9 @@ def add_arguments(self, parser): help='Cleanup the tables before starting the warehouse', default=False, ) + def handle(self, *args, **options): start_date = None if len(args) < 1 else string_to_datetime(args[0]) - end_date = None if len(args) < 2 else string_to_datetime(args[1]) + end_date = None if len(args) < 2 else string_to_datetime(args[1]) cleanup = options["cleanup"] - return runner.update_warehouse(start_date, end_date, cleanup) + return runner.update_warehouse(start_date, end_date, cleanup)