Changes to the booking process in regarts to the trial processing
This commit is contained in:
+2
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user