Skip to content

Commit

Permalink
fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
link-hsu committed May 16, 2024
1 parent 015463f commit 18c9091
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 17 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

🧭 Taipei Day Trip is an e-commerce website where you can discover tourist attractions in Taipei and book day tours of the sights with *member system*.

🔗 Website URL: https://trip.abinitio.fun/

## Tools
- Front-end
- vanilla HTML and Javascript
Expand Down
4 changes: 1 addition & 3 deletions api/attractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ def get_con():
user="root",
password="123456789",
host="localhost",
database="attraction",
auth_plugin="mysql_native_password"
)
database="attraction")
return con


Expand Down
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def thankyou():
def member():
return render_template("member.html")

app.run(host="0.0.0.0", port=3000)
# app.run(port=3000)
# app.run(host="0.0.0.0", port=3000)
app.run(port=3000)


4 changes: 1 addition & 3 deletions data/createTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ def get_con():
user="root",
password="123456789",
host="localhost",
database="attraction",
auth_plugin="mysql_native_password"
)
database="attraction")
print("connnect to mysql successfully")
return con

Expand Down
3 changes: 1 addition & 2 deletions data/data_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
user = "root",
password = "123456789",
host = "localhost",
database = "attraction",
auth_plugin="mysql_native_password")
database = "attraction")
print("connnect to mysql successfully")
cursor = con.cursor()

Expand Down
4 changes: 1 addition & 3 deletions model/DealDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def is_imagelink(link):
# user="root",
# password=sql_password,
# host="localhost",
# database="attraction",
# auth_plugin="mysql_native_password"
# )
# database="attraction")
# return con


Expand Down
5 changes: 3 additions & 2 deletions static/booking.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ function enableBookingConfirmButton() {

// ====== tappay
TPDirect.setupSDK(
137219,
"app_RTFSkViFrDFpkJcOOgY6gzdUwHB7P5TKSw1nAEW91XhKBibtjNp951i9JFd5",
149909,
"app_yhT2q7SIMGghOoRAnHp7t8Q9Kf9mOVxQy9MYk28fxiRZdmrmnM7WiDYcnBuB",
"sandbox"
);

Expand Down Expand Up @@ -267,6 +267,7 @@ TPDirect.card.onUpdate(function (update) {
} else {
// Disable submit Button to get prime.
// submitButton.setAttribute('disabled', true)
console.log('order not work');
}

// cardTypes = ['mastercard', 'visa', 'jcb', 'amex', 'unionpay','unknown']
Expand Down

0 comments on commit 18c9091

Please sign in to comment.