Explorar el Código

버그 수정

2DU hace 9 años
padre
commit
4ef8dec3b5
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      main.py

+ 4 - 1
main.py

@@ -100,9 +100,12 @@ curs = conn.cursor(pymysql.cursors.DictCursor)
 def redirect(data):
     return '<meta http-equiv="refresh" content="0;url=' + data + '" />'
     
+def db_com():
+    return conn.commit()
+    
 def db_get():
     return curs.fetchall()
-    
+
 web_render = render_template
 db_ex = curs.execute
 db_pas = pymysql.escape_string