fix loading .env file

This commit is contained in:
2026-06-12 18:38:53 +02:00
parent e3705027fa
commit d5039a1c7e
3 changed files with 31 additions and 2 deletions
+5 -1
View File
@@ -1,8 +1,12 @@
import requests
import subprocess
import os
from dotenv import load_dotenv
webhook_url = os.environ['WEBHOOK_URL']
load_dotenv()
webhook_url = os.environ.get("WEBHOOK_URL")
print(webhook_url)
bun_path = '/home/user/.bun/bin/bun'
result = subprocess.run([bun_path, "run", "getWishlist.mjs"], capture_output=True, text=True)