INNER CODE UNIT · Python
since_date
nubenetes/awesome-kubernetes · src/main.py:59
since_date = until_date - timedelta(days=days)
log_event(f"[*] Mode: Relative range (Last {days} days) -> {since_date.date()}")
is_historical = False # Force normal mode for relative range
except Exception as e:
log_event(f"[WARN] parse CURATION_DAYS_BACK: {str(e)[:100]}")
since_date = get_last_date()
elif is_historical:
# DEFAULT START DATE: 2026-05-15 (as requested)
final_stop_date = datetime(2026, 5, 15, 0, 0, tzinfo=MADRID_TZ)
if is_chunked:
chunk_days = int(os.getenv("HISTORICAL_CHUNK_DAYS", "180"))
until_str = os.getenv("HISTORICAL_UNTIL_DATE")
if until_str:
until_date = datetime.fromisoformat(until_str).replace(tzinfo=MADRID_TZ)
else:
until_date = datetime.now(MADRID_TZ)