Skip to content

Commit

Permalink
fix base_year calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 21, 2024
1 parent 40d91b7 commit 7bf2f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salesforce/management/commands/update_opportunities.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def handle(self, *args, **options):
now = datetime.datetime.now()

base_year = now.year
if now.month >= 7: # Salesforce needs the school base year, this is how they calculate it
if now.month < 7: # if it's before July, the base year is the previous year (4/1/2024 = base_year 2023)
base_year -= 1

# truncate the table
Expand Down

0 comments on commit 7bf2f6d

Please sign in to comment.