diff --git a/scripts/assign-colors.py b/scripts/assign-colors.py index 679a77d3f..a73a55584 100644 --- a/scripts/assign-colors.py +++ b/scripts/assign-colors.py @@ -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