mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Updated a couple more dependencies and fix flake8 warnings
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -60,7 +60,7 @@ def get_current_calendar_year_start_year():
|
||||
|
||||
|
||||
def get_calendar_year_for_datetime(start_date):
|
||||
if type(start_date) == date:
|
||||
if isinstance(start_date) == date:
|
||||
start_date = datetime.combine(start_date, time.min)
|
||||
|
||||
year = int(start_date.strftime("%Y"))
|
||||
|
||||
Reference in New Issue
Block a user