hardik8588 commited on
Commit
846b98e
·
verified ·
1 Parent(s): c2b258a

Update paypal_integration.py

Browse files
Files changed (1) hide show
  1. 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.path.abspath("/tmp/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)
 
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)