diff options
| author | root <root@turin.home> | 2022-01-30 15:37:55 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-01-30 15:37:55 +0000 |
| commit | 4fba299e5e36101a43c7e894cb2bf235ed2e3f58 (patch) | |
| tree | 925795c469fd1dcaf180c4c86aefaf590a88c7ad | |
| parent | 099b121b5a9188514f56fb0728d777d3de8d0fcf (diff) | |
Import error
| -rw-r--r-- | api.py | 1 | ||||
| -rw-r--r-- | main.py | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ from __main__ import app +from __main__ import boiler @app.route("/api/info") def api_info(): @@ -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 |
