Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
d53adef
1
Parent(s):
9ec0cd6
fix
Browse files
app/dialogflow/api/v1/dialogflow.py
CHANGED
@@ -31,13 +31,13 @@ async def confirm(request: Request):
|
|
31 |
text = [f"""Ngày: {date} {week_day}\nSố vé: {ticket_number}"""]
|
32 |
temp = ""
|
33 |
if origin_office and dest_office:
|
34 |
-
temp = f"""Điểm đi: {origin_office}\nĐiểm đến: {dest_office}"""
|
35 |
elif origin_office and departure_city:
|
36 |
-
temp = f"""Điểm đi: {origin_office}\nĐiểm đến: {departure_city}"""
|
37 |
elif dest_office and departure_city:
|
38 |
-
temp = f"""Điểm đi: {departure_city}\nĐiểm đến: {dest_office}"""
|
39 |
elif departure_city and destination_city:
|
40 |
-
temp = f"""Điểm đi: {departure_city}\nĐiểm đến: {destination_city}"""
|
41 |
text[0] = temp + text[0]
|
42 |
payload = {
|
43 |
"richContent": [
|
|
|
31 |
text = [f"""Ngày: {date} {week_day}\nSố vé: {ticket_number}"""]
|
32 |
temp = ""
|
33 |
if origin_office and dest_office:
|
34 |
+
temp = f"""Điểm đi: {origin_office}\nĐiểm đến: {dest_office}\n"""
|
35 |
elif origin_office and departure_city:
|
36 |
+
temp = f"""Điểm đi: {origin_office}\nĐiểm đến: {departure_city}\n"""
|
37 |
elif dest_office and departure_city:
|
38 |
+
temp = f"""Điểm đi: {departure_city}\nĐiểm đến: {dest_office}\n"""
|
39 |
elif departure_city and destination_city:
|
40 |
+
temp = f"""Điểm đi: {departure_city}\nĐiểm đến: {destination_city}\n"""
|
41 |
text[0] = temp + text[0]
|
42 |
payload = {
|
43 |
"richContent": [
|