Skip to content

Commit

Permalink
fixup! Use ISO duration format for clade recency
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Oct 1, 2024
1 parent d517a5f commit 024ae94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/assign-colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def date_within_last_n_months(date_str, cutoff_date):
if 'XX' in date_str:
return False # Ignore uncertain dates
try:
date = datetime.datetime.strptime(date_str, "%Y-%m-%d")
date = datetime.datetime.strptime(date_str, "%Y-%m-%d").date()
return date >= cutoff_date
except ValueError:
return False
Expand Down

0 comments on commit 024ae94

Please sign in to comment.