From dc1562fcba8c84be1e2189a4297f7b63a1fa0c53 Mon Sep 17 00:00:00 2001 From: Max Value Date: Thu, 6 Mar 2025 23:11:10 +0000 Subject: [PATCH] added SHOPPING_PATH environ for namespace --- data.db | Bin 8192 -> 8192 bytes teleshopping.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data.db b/data.db index 8921e712026a0b7e53781f1ab2ebc8cce024c85b..91a44152c07ff5ef1f6f1565bc61c4fcb70a306f 100644 GIT binary patch delta 23 fcmZp0XmFSy%{XJCj5FhmjS126jLehw$h!alUD5}S delta 23 fcmZp0XmFSy%{YCcj5Fi(jS126j7*dF$h!alU9ty^ 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: -- 2.39.2