From 800b91b3dde9cde0c531b1cf9d00fdcfc03cc71f Mon Sep 17 00:00:00 2001 From: Varendra Maurya Date: Wed, 21 Feb 2024 16:03:06 +0530 Subject: [PATCH] format return object of getTimings --- utils/helpers.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/helpers.py b/utils/helpers.py index afa2e12..bf4e0f4 100644 --- a/utils/helpers.py +++ b/utils/helpers.py @@ -35,10 +35,10 @@ def getTimings(num_days): return { "sw1": { "start_day": startDay.day, - "target_month": startMonth, "end_day": endDay.day, - "year": startYear, "day_diff": diff, + "target_month": startMonth, + "year": startYear, } } else: @@ -59,16 +59,16 @@ def getTimings(num_days): return { "sw1": { "start_day": prev_start_day, - "target_month": previous_month, "end_day": prev_end_day, - "year": previous_year, "day_diff": prev_day_diff, + "target_month": previous_month, + "year": previous_year, }, "sw2": { "start_day": current_start_day, - "target_month": current_month, "end_day": current_end_day, - "year": current_year, "day_diff": current_day_diff, + "target_month": current_month, + "year": current_year, }, }