From: Max Value Date: Thu, 6 Mar 2025 23:11:10 +0000 (+0000) Subject: added SHOPPING_PATH environ for namespace X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=dc1562fcba8c84be1e2189a4297f7b63a1fa0c53;p=shopping-channel added SHOPPING_PATH environ for namespace --- diff --git a/data.db b/data.db index 8921e71..91a4415 100644 Binary files a/data.db and b/data.db differ diff --git a/teleshopping.py b/teleshopping.py index 4f35c63..f165cfa 100755 --- a/teleshopping.py +++ b/teleshopping.py @@ -6,7 +6,7 @@ from flask_httpauth import HTTPBasicAuth from datetime import datetime, timezone from math import radians, cos, sin from ast import literal_eval -from os import path +from os import path, environ import sqlite3 import json @@ -14,6 +14,7 @@ INCREMENT = 18 app = Flask(__name__) auth = HTTPBasicAuth() +app.root_path = environ["SHOPPING_PATH"] # get the secrets ready with open(path.join(app.root_path, "..", "secrets.json"), "r") as f: