Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ ssl_context.check_hostname = False
|
|
| 178 |
ssl_context.verify_mode = ssl.CERT_NONE
|
| 179 |
|
| 180 |
engine = create_async_engine(
|
| 181 |
-
"postgresql+asyncpg://postgres.ditksqrdnuufseforpil:
|
| 182 |
echo=True,
|
| 183 |
connect_args={
|
| 184 |
"ssl": ssl_context,
|
|
@@ -518,8 +518,8 @@ async def get_shipping_cost(address: str) -> int:
|
|
| 518 |
def send_email_notification(order_details):
|
| 519 |
# Updated email notification for Creole Kings
|
| 520 |
payload = {
|
| 521 |
-
"from": "
|
| 522 |
-
"to": "
|
| 523 |
"subject": f"New Order Received: {order_details['order_id']}",
|
| 524 |
"body": (
|
| 525 |
f"New Order Received:\n"
|
|
@@ -535,8 +535,8 @@ def send_email_notification(order_details):
|
|
| 535 |
"smtpHost": "smtp.gmail.com",
|
| 536 |
"smtpPort": 587,
|
| 537 |
"smtpSecure": "false",
|
| 538 |
-
"smtpUser": "
|
| 539 |
-
"smtpPassword": "
|
| 540 |
}
|
| 541 |
|
| 542 |
url = "https://smtp-server-ten.vercel.app/smtp"
|
|
|
|
| 178 |
ssl_context.verify_mode = ssl.CERT_NONE
|
| 179 |
|
| 180 |
engine = create_async_engine(
|
| 181 |
+
"postgresql+asyncpg://postgres.ditksqrdnuufseforpil:Lovyelias5584.@aws-0-eu-central-1.pooler.supabase.com:5432/postgres",
|
| 182 |
echo=True,
|
| 183 |
connect_args={
|
| 184 |
"ssl": ssl_context,
|
|
|
|
| 518 |
def send_email_notification(order_details):
|
| 519 |
# Updated email notification for Creole Kings
|
| 520 |
payload = {
|
| 521 |
+
"from": "yungdml31@gmail.com",
|
| 522 |
+
"to": "samyung05@gmail.com",
|
| 523 |
"subject": f"New Order Received: {order_details['order_id']}",
|
| 524 |
"body": (
|
| 525 |
f"New Order Received:\n"
|
|
|
|
| 535 |
"smtpHost": "smtp.gmail.com",
|
| 536 |
"smtpPort": 587,
|
| 537 |
"smtpSecure": "false",
|
| 538 |
+
"smtpUser": "yungdml41@gmail.com",
|
| 539 |
+
"smtpPassword": "uddvxabxotlvfewk",
|
| 540 |
}
|
| 541 |
|
| 542 |
url = "https://smtp-server-ten.vercel.app/smtp"
|