diff --git a/openstax/urls.py b/openstax/urls.py index 782c3aa6..124c8151 100644 --- a/openstax/urls.py +++ b/openstax/urls.py @@ -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')) ] diff --git a/salesforce/management/commands/update_opportunities.py b/salesforce/management/commands/update_opportunities.py index 5b92b2b1..d888759e 100644 --- a/salesforce/management/commands/update_opportunities.py +++ b/salesforce/management/commands/update_opportunities.py @@ -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