Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ app = FastAPI(lifespan=lifespan)
|
|
41 |
def get_conn():
|
42 |
return mysql.connector.connect(
|
43 |
host=os.getenv("DB_HOST"),
|
44 |
-
port=int(os.getenv("DB_PORT"
|
45 |
user=os.getenv("DB_USER"),
|
46 |
password=os.getenv("DB_PASS"),
|
47 |
database=os.getenv("DB_NAME"),
|
|
|
41 |
def get_conn():
|
42 |
return mysql.connector.connect(
|
43 |
host=os.getenv("DB_HOST"),
|
44 |
+
port=int(os.getenv("DB_PORT", 4000)),
|
45 |
user=os.getenv("DB_USER"),
|
46 |
password=os.getenv("DB_PASS"),
|
47 |
database=os.getenv("DB_NAME"),
|