if current_user.is_authenticated:
return redirect(url_for('special'))
self.connection.commit()
import calendar
...
days_month = calendar.monthrange(d.year, d.month)[1]
if len(my_days) > (days_month - d.day):
my_days = my_days[:days_month - d.day]
def func(a, b, c, d):
...
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "тут xpath"))).click()