Surplus_Up (2DU) 6 anni fa
parent
commit
8d9baecf06
2 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. 5 2
      .gitignore
  2. 5 0
      app.py

+ 5 - 2
.gitignore

@@ -1,15 +1,18 @@
 __pycache__
 /app_session
+
 data/set.json
 data/mysql.json
-404.html
+
+images
 .vscode
 
 *.db
 *.db-journal
 
-images
 robots.txt
+custom.py
+404.html
 
 views/liberty
 views/buma

+ 5 - 0
app.py

@@ -321,6 +321,11 @@ if not curs.fetchall():
 
 conn.commit()
 
+if os.path.exists('custom.py'):
+    from custom import custom_run
+
+    custom_run(conn, app)
+
 # Func
 @app.route('/del_alarm')
 def alarm_del():