summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 76c0f41..d6d6320 100644
--- a/main.py
+++ b/main.py
@@ -10,8 +10,6 @@ from threading import Thread
app = Flask(__name__)
-# Import API Script after Flask app exists
-import api
# Paramaterised location of database file
# Use of constant
@@ -34,6 +32,8 @@ if device.startswith("Raspberry Pi 4"):
else:
errors.device_error()
+# Import API Script after Flask app and boiler classexists
+import api
def main_page():
# paramaterised location of template in 'templates' folder