Explorar o código

버그 수정

2DU %!s(int64=9) %!d(string=hai) anos
pai
achega
a9a05d4c8c
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      start.py

+ 9 - 0
start.py

@@ -96,6 +96,15 @@ def 시작():
 
 
 conn = pymysql.connect(host = data['host'], user = data['user'], password = data['pw'], charset = 'utf8mb4')
 conn = pymysql.connect(host = data['host'], user = data['user'], password = data['pw'], charset = 'utf8mb4')
 curs = conn.cursor(pymysql.cursors.DictCursor)
 curs = conn.cursor(pymysql.cursors.DictCursor)
+
+def DB_갱신():
+    conn.commit()
+
+def URL_인코딩(데이터):
+    return parse.quote(데이터).replace('/','%2F')
+    
+def DB_가져오기():
+    return curs.fetchall()
     
     
 웹_디자인 = render_template
 웹_디자인 = render_template
 DB_실행 = curs.execute
 DB_실행 = curs.execute