transcription-cost-usage-re.../backend/app/utils/current_date.py

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