File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
ex-submodules/django-datawarehouse/warehouse/management/commands Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55from warehouse import runner
66
77class Command (BaseCommand ):
8-
8+
99 help = "Run the data warehouse"
1010 args = "<start_date> <end_date>"
1111 label = ""
@@ -18,8 +18,9 @@ def add_arguments(self, parser):
1818 help = 'Cleanup the tables before starting the warehouse' ,
1919 default = False ,
2020 )
21+
2122 def handle (self , * args , ** options ):
2223 start_date = None if len (args ) < 1 else string_to_datetime (args [0 ])
23- end_date = None if len (args ) < 2 else string_to_datetime (args [1 ])
24+ end_date = None if len (args ) < 2 else string_to_datetime (args [1 ])
2425 cleanup = options ["cleanup" ]
25- return runner .update_warehouse (start_date , end_date , cleanup )
26+ return runner .update_warehouse (start_date , end_date , cleanup )
You can’t perform that action at this time.
0 commit comments