dotenv not really needed, plus system packages are hammered dogshit

This commit is contained in:
2024-11-22 19:44:10 -08:00
parent 1105744316
commit 7c7736764a
3 changed files with 9 additions and 5 deletions
+9 -5
View File
@@ -20,11 +20,15 @@ import logging
import socket
import json
from tools import sanity_check
from dotenv import load_dotenv
load_dotenv()
SERMON_DB = os.getenv("KJV_SERMON_DB")
SECRET_API_KEY = os.getenv("KJV_SECRET_API_KEY")
try:
from dotenv import load_dotenv
load_dotenv()
SERMON_DB = os.getenv("KJV_SERMON_DB")
SECRET_API_KEY = os.getenv("KJV_SECRET_API_KEY")
except:
KJV_SERMON_DB="./data/sermons.db"
# this does not do anything unless sermon_analyzer.py is running in tcp socket mode as a separate process
KJV_SECRET_API_KEY="testing"
sequential_purge_delta: timedelta = timedelta(days=90)
timestamp_runtime: datetime = datetime.now().strftime("%d%b%y-%H:%M")
Regular → Executable
View File
Regular → Executable
View File