Skip to content

Commit

Permalink
use base year from 2 years ago (2023-24 records) (#1588)
Browse files Browse the repository at this point in the history
* use base year from 2 years ago (2023-24 records)

* Update update_opportunities.py
  • Loading branch information
mwvolo authored Oct 23, 2024
1 parent 25a47b6 commit 640cf17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion openstax/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += [
path('favicon\.ico', RedirectView.as_view(url=settings.STATIC_URL + 'pages/images/favicon.ico')),
path('favicon.ico', RedirectView.as_view(url=settings.STATIC_URL + 'pages/images/favicon.ico')),
path('__debug__/', include('debug_toolbar.urls'))
]
2 changes: 2 additions & 0 deletions salesforce/management/commands/update_opportunities.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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
Expand Down

0 comments on commit 640cf17

Please sign in to comment.