From 65b4d20e96c399523a6c39cdfffa46683e87b6c2 Mon Sep 17 00:00:00 2001 From: Debasish Chakraborty <117706910+debasishchakraborty-egovt@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:34:23 +0530 Subject: [PATCH] Update app.py --- utilities/rollout-dashboard-cronjob/app.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/utilities/rollout-dashboard-cronjob/app.py b/utilities/rollout-dashboard-cronjob/app.py index 838b88cad..6290dc111 100644 --- a/utilities/rollout-dashboard-cronjob/app.py +++ b/utilities/rollout-dashboard-cronjob/app.py @@ -812,16 +812,13 @@ def is_saturdaydayOrSunday(): print("DateTime today :",datetime.today().weekday()) return datetime.today().weekday() in [5, 6] def get_daterange(): - if is_saturdaydayOrSunday(): - return [ + return [ 'Last seven days', 'Last 15 days', 'currentMonth-Till date', 'Previous Month', 'Quarter-1', 'Quarter-2', 'Quarter-3', 'Quarter-4', 'Consolidated (As on date)', 'FY to date', 'Previous 1st FY (23-24)', 'Previous 2nd FY (22-23)', 'Previous 3rd FY (21-22)' ] - else: - return ['Last seven days', 'Last 15 days', 'currentMonth-Till date', 'Consolidated (As on date)', 'FY to date'] - + def process(): print("continue is the process")