6 lines
230 B
Python
6 lines
230 B
Python
|
from datetime import datetime
|
||
|
|
||
|
def is_current_date(start_date: str, end_date: str):
|
||
|
today_str = datetime.utcnow().date().isoformat()
|
||
|
ignore_cache = (start_date == today_str or end_date == today_str)
|
||
|
return ignore_cache
|