summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 15:37:55 +0000
committerroot <root@turin.home>2022-01-30 15:37:55 +0000
commit4fba299e5e36101a43c7e894cb2bf235ed2e3f58 (patch)
tree925795c469fd1dcaf180c4c86aefaf590a88c7ad /main.py
parent099b121b5a9188514f56fb0728d777d3de8d0fcf (diff)
Import error
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