Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimpe committed Jun 11, 2024
1 parent dd65bbe commit 2cfcfb3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion tdrs-backend/tdpservice/email/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def email_admin_num_access_requests():
@shared_task
def send_data_submission_reminder(due_date, reporting_period, fiscal_quarter):
"""Send all Data Analysts a reminder to submit if they have not already."""

now = datetime.now()
fiscal_year = calendar_to_fiscal(now.year, fiscal_quarter)

Expand Down
1 change: 1 addition & 0 deletions tdrs-backend/tdpservice/parsers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def fiscal_to_calendar(year, fiscal_quarter):


def calendar_to_fiscal(calendar_year, fiscal_quarter):
"""Decrement the calendar year if in Q1."""
return calendar_year - 1 if fiscal_quarter == 'Q1' else calendar_year


Expand Down

0 comments on commit 2cfcfb3

Please sign in to comment.