Refactor SSO authentication to support multiple providers and enhance error handling
This commit is contained in:
parent
862518a45f
commit
c4cef0d9b5
10 changed files with 233 additions and 66 deletions
|
|
@ -2,9 +2,10 @@ import re
|
|||
import html
|
||||
import datetime
|
||||
import pytz
|
||||
from config.constants import TIMEZONE
|
||||
|
||||
def get_future_datetime(days_ahead=3, hour="13:00:00"):
|
||||
dt = datetime.datetime.now(pytz.timezone('Europe/Berlin')) + 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}+02:00")
|
||||
|
||||
def extract_html_value(text, pattern):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue