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