fix text bug in date
This commit is contained in:
parent
9de289d43b
commit
2c5310fe0d
@ -51,7 +51,7 @@ def get_colored_category(category: str) -> str:
|
||||
|
||||
|
||||
def get_colored_date(date: datetime.date) -> str:
|
||||
if not date:
|
||||
if not isinstance(date, datetime.date):
|
||||
return ""
|
||||
as_str = date.strftime("%Y-%m-%d")
|
||||
today = datetime.date.today()
|
||||
|
Loading…
Reference in New Issue
Block a user