Explorar o código

讀取正式機資料

Mike %!s(int64=3) %!d(string=hai) anos
pai
achega
3645936db9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      api/main.py

+ 2 - 2
api/main.py

@@ -40,10 +40,10 @@ customer_note (備註)
 # 取得資料庫連線
 def get_db_connection():
     # 測試機 DB
-    db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/stage?charset=utf8mb4')
+    # db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/stage?charset=utf8mb4')
 
     # 正式機 DB
-    # db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
+    db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
 
     return db