From 3121e2dc662b0f1b08a1a5bd6d91037972241198 Mon Sep 17 00:00:00 2001 From: Michael Volo Date: Wed, 23 Oct 2024 16:49:07 -0500 Subject: [PATCH] Update update_opportunities.py --- salesforce/management/commands/update_opportunities.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salesforce/management/commands/update_opportunities.py b/salesforce/management/commands/update_opportunities.py index ed033ca4..d888759e 100644 --- a/salesforce/management/commands/update_opportunities.py +++ b/salesforce/management/commands/update_opportunities.py @@ -14,6 +14,8 @@ def handle(self, *args, **options): base_year = now.year if now.month < 7: # if it's before July, the base year is the previous year (4/1/2024 = base_year 2023) base_year -= 2 + else: + base_year -= 1 # TODO: I don't think this is needed - updating the records should be fine, and keeps something on the form # TODO: for the user. Eventually, this should update CMS DB with updated data if they fill out the form