2DU 9 lat temu
rodzic
commit
d64ddba031
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6 6
      main.py

+ 6 - 6
main.py

@@ -99,12 +99,6 @@ 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
@@ -120,6 +114,12 @@ except:
 from func import *
 from mark import *
 
+def db_com():
+    return conn.commit()
+    
+def db_get():
+    return curs.fetchall()
+
 start()
 
 app.secret_key = sha224(set_data['key'])