Spaces:
Sleeping
Sleeping
Update paypal_integration.py
Browse files- paypal_integration.py +1 -1
paypal_integration.py
CHANGED
@@ -547,7 +547,7 @@ logger.info(f"PayPal plans will be stored at: {PLAN_IDS_PATH}")
|
|
547 |
# Add this function if it's not defined elsewhere
|
548 |
def get_db_connection():
|
549 |
"""Get a connection to the SQLite database"""
|
550 |
-
DB_PATH = os.
|
551 |
# Make sure the data directory exists
|
552 |
os.makedirs(os.path.dirname(DB_PATH), exist_ok=True)
|
553 |
return sqlite3.connect(DB_PATH)
|
|
|
547 |
# Add this function if it's not defined elsewhere
|
548 |
def get_db_connection():
|
549 |
"""Get a connection to the SQLite database"""
|
550 |
+
DB_PATH = os.getenv("DB_PATH", "/tmp/data/user_data.db")
|
551 |
# Make sure the data directory exists
|
552 |
os.makedirs(os.path.dirname(DB_PATH), exist_ok=True)
|
553 |
return sqlite3.connect(DB_PATH)
|