only formatting hopefully

This commit is contained in:
i 2026-02-06 17:42:40 +01:00
parent 025c87216d
commit 8ad5f1964e
9 changed files with 241 additions and 198 deletions

View file

@ -4,10 +4,14 @@ import datetime
import pytz
from config.constants import TIMEZONE
def get_future_datetime(days_ahead=4, hour="13:00:00"):
dt = datetime.datetime.now(pytz.timezone(TIMEZONE)) + datetime.timedelta(days=days_ahead)
dt = datetime.datetime.now(pytz.timezone(TIMEZONE)) + datetime.timedelta(
days=days_ahead
)
return dt.strftime(f"%Y-%m-%dT{hour}+01:00")
def extract_html_value(text, pattern):
match = re.search(pattern, text)
if not match: