]> OzVa Git service - shopping-channel/commitdiff
added SHOPPING_PATH environ for namespace
authorMax Value <greenwoodw50@gmail.com>
Thu, 6 Mar 2025 23:11:10 +0000 (23:11 +0000)
committerMax Value <greenwoodw50@gmail.com>
Thu, 6 Mar 2025 23:11:10 +0000 (23:11 +0000)
data.db
teleshopping.py

diff --git a/data.db b/data.db
index 8921e712026a0b7e53781f1ab2ebc8cce024c85b..91a44152c07ff5ef1f6f1565bc61c4fcb70a306f 100644 (file)
Binary files a/data.db and b/data.db differ
index 4f35c63dac15df1ae19c3a6ec665a5db1e0f5542..f165cfacd286a98e35b2d6f15a48ab898055cf2a 100755 (executable)
@@ -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: