From 359e89557d890f09522c44adc40ca0e70a69f53b Mon Sep 17 00:00:00 2001 From: sunilk747 Date: Wed, 24 Jul 2019 16:49:50 +0530 Subject: [PATCH 1/2] change retraining day to wednesday --- f8a_report/report_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f8a_report/report_helper.py b/f8a_report/report_helper.py index 0da0ebb..077fd95 100644 --- a/f8a_report/report_helper.py +++ b/f8a_report/report_helper.py @@ -396,7 +396,7 @@ def normalize_worker_data(self, start_date, end_date, stack_data, worker, freque today = dt.today() # Invoke this every Monday. In Python, Monday is 0 and Sunday is 6 - if today.weekday() == 0: + if today.weekday() == 2: # Collate Data from Previous Month for Model Retraining collated_data = self.collate_raw_data(unique_stacks_with_recurrence_count, 'weekly') From 4441e4498433dc71c0f3e139581eb34582fe8249 Mon Sep 17 00:00:00 2001 From: sunilk747 Date: Thu, 25 Jul 2019 14:08:51 +0530 Subject: [PATCH 2/2] minor fix --- f8a_report/report_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/f8a_report/report_helper.py b/f8a_report/report_helper.py index 077fd95..7caac4b 100644 --- a/f8a_report/report_helper.py +++ b/f8a_report/report_helper.py @@ -395,7 +395,7 @@ def normalize_worker_data(self, start_date, end_date, stack_data, worker, freque } today = dt.today() - # Invoke this every Monday. In Python, Monday is 0 and Sunday is 6 + # Invoke this every Wednesday. In Python, Monday is 0 and Sunday is 6 if today.weekday() == 2: # Collate Data from Previous Month for Model Retraining collated_data = self.collate_raw_data(unique_stacks_with_recurrence_count,