Changes to the booking process in regarts to the trial processing

This commit is contained in:
2026-09-06 22:00:51 +02:00
parent 0853de417a
commit f64df11380
3 changed files with 26 additions and 32 deletions
+2 -1
View File
@@ -2585,7 +2585,8 @@ def booking_payment():
return redirect(url_for("user_chat"))
if booking_flow in ["payment", "trial"]:
booking_number = f"{"TRIAL" if is_trial else "BOOK"}-{datetime.utcnow().strftime('%Y%m%d%H%M%S')}"
# CORRECTED: Syntax error in the f-string is fixed below (uses single quotes inside double quotes)
booking_number = f"{'TRIAL' if is_trial else 'BOOK'}-{datetime.utcnow().strftime('%Y%m%d%H%M%S')}"
raw_base = form_data.get("tenant_slug") or form_data.get("school_name") or session.get("username") or booking_number
base = _slugify_subdomain(raw_base).lower()[:51]