Update app.py
Browse files
app.py
CHANGED
|
@@ -81,6 +81,37 @@ SHEET_ID = "1o0AUq13j-7LZWDhCwFYgq07niZtvOya5iE5bbRQMGWc"
|
|
| 81 |
GOOGLE_FORM_VIEW_URL = "https://docs.google.com/forms/d/e/1FAIpQLSeg_6oh7Uh46zODsawnctwT_Bfu48ojtK3b8JLZeaZuaEQ1Ig/viewform?usp=publish-editor"
|
| 82 |
GOOGLE_FORM_ACTION_URL = "https://docs.google.com/forms/d/e/1FAIpQLSeg_6oh7Uh46zODsawnctwT_Bfu48ojtK3b8JLZeaZuaEQ1Ig/formResponse"
|
| 83 |
GOOGLE_FORM_JSON_ENTRIES = ("entry.240290822", "entry.421446115")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
DATASET_REPO = "SalexAI/mztimgs" # 👈 change if needed
|
| 86 |
|
|
@@ -532,6 +563,17 @@ async def proxy_google_sheets(range: str):
|
|
| 532 |
|
| 533 |
return r.json()
|
| 534 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 535 |
# ==================================================
|
| 536 |
# GOOGLE FORM JSON SUBMIT
|
| 537 |
# ==================================================
|
|
|
|
| 81 |
GOOGLE_FORM_VIEW_URL = "https://docs.google.com/forms/d/e/1FAIpQLSeg_6oh7Uh46zODsawnctwT_Bfu48ojtK3b8JLZeaZuaEQ1Ig/viewform?usp=publish-editor"
|
| 82 |
GOOGLE_FORM_ACTION_URL = "https://docs.google.com/forms/d/e/1FAIpQLSeg_6oh7Uh46zODsawnctwT_Bfu48ojtK3b8JLZeaZuaEQ1Ig/formResponse"
|
| 83 |
GOOGLE_FORM_JSON_ENTRIES = ("entry.240290822", "entry.421446115")
|
| 84 |
+
TERMS_OF_TRAVEL_TEXT = """Please Carefully Read the Following Terms of Travel
|
| 85 |
+
By making a deposit for a tour with Mile Zero Tours Ltd. the guest agrees to all of the following terms and conditions of travel.
|
| 86 |
+
|
| 87 |
+
HOME PICK-UP & DROP OFF:
|
| 88 |
+
Tours departing from Vancouver Island - Mile Zero Tours is pleased to offer complimentary pick-up and drop-off at any location in Victoria at the beginning and end of a tour. Complimentary service is available within 35km driving distance of Victoria International Airport. Mile Zero Tours also offers pick-up and drop-off service from Nanaimo, Parksville and Qualicum. This is complimentary when available on the same day as the tour's departure and return. However, as some tours involve very early morning departures or late evening returns this service may be offered the day before or day after the tour and will require a pre or post tour night in Victoria. Guests will be advised at time of booking if pick-ups and returns are offered same day or if an additional night will be required. Mile Zero Tours can arrange hotel accommodations for guests requiring a pre or post night in Victoria at a minimal cost.
|
| 89 |
+
|
| 90 |
+
DEPARTURE TIMES:
|
| 91 |
+
Mile Zero Tours will advise guests of pick up times a few days prior to travel and guests need to be ready to depart at the specified time.
|
| 92 |
+
|
| 93 |
+
LUGGAGE:
|
| 94 |
+
The limit per person is one suitcase (not more than 50lbs) and a small carry-on bag.
|
| 95 |
+
|
| 96 |
+
ACCOMMODATIONS:
|
| 97 |
+
Special rooming requests should be provided at least one month prior to departure.
|
| 98 |
+
|
| 99 |
+
ITINERARY:
|
| 100 |
+
Mile Zero Tours reserves the right to alter the order of sightseeing activities for reasons beyond our control.
|
| 101 |
+
|
| 102 |
+
INTERNATIONAL TRAVEL:
|
| 103 |
+
For any travel outside of Canada, a valid passport is required and guests are responsible for admissibility and valid documentation.
|
| 104 |
+
|
| 105 |
+
DIETARY NEEDS:
|
| 106 |
+
Guests should advise Mile Zero Tours of dietary concerns at least one month before the tour departure date.
|
| 107 |
+
|
| 108 |
+
CANCELLATIONS:
|
| 109 |
+
The cancellation policy for each tour is described in detail on the tour itinerary and invoice.
|
| 110 |
+
|
| 111 |
+
PRIVACY:
|
| 112 |
+
Information collected by Mile Zero Tours is confidential and used only for tour operations and legal requirements.
|
| 113 |
+
|
| 114 |
+
Updated: November 2020"""
|
| 115 |
|
| 116 |
DATASET_REPO = "SalexAI/mztimgs" # 👈 change if needed
|
| 117 |
|
|
|
|
| 563 |
|
| 564 |
return r.json()
|
| 565 |
|
| 566 |
+
# ==================================================
|
| 567 |
+
# TERMS OF TRAVEL
|
| 568 |
+
# ==================================================
|
| 569 |
+
@app.get("/terms")
|
| 570 |
+
async def get_terms():
|
| 571 |
+
return {
|
| 572 |
+
"ok": True,
|
| 573 |
+
"updated": "November 2020",
|
| 574 |
+
"terms": TERMS_OF_TRAVEL_TEXT,
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
# ==================================================
|
| 578 |
# GOOGLE FORM JSON SUBMIT
|
| 579 |
# ==================================================
|