Spaces:
Sleeping
Sleeping
Await Async
Browse files- globales.py +1 -4
- main.py +1 -1
globales.py
CHANGED
|
@@ -2,9 +2,6 @@ import os
|
|
| 2 |
import autenticacion
|
| 3 |
import time
|
| 4 |
|
| 5 |
-
print("Estoy en globales...")
|
| 6 |
-
time.sleep(17)
|
| 7 |
|
| 8 |
-
#os.getenv("ambiente")
|
| 9 |
|
| 10 |
-
llave, webhook, ga4Key, ga4ID = autenticacion.defineAmbiente(
|
|
|
|
| 2 |
import autenticacion
|
| 3 |
import time
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
|
|
|
| 6 |
|
| 7 |
+
llave, webhook, ga4Key, ga4ID = autenticacion.defineAmbiente(os.getenv("ambiente"))
|
main.py
CHANGED
|
@@ -20,6 +20,6 @@ def start():
|
|
| 20 |
@app.post("/webhook")
|
| 21 |
async def webhook_received(request: Request, stripe_signature: str = Header(None)):
|
| 22 |
|
| 23 |
-
return funciones.procesa_evento(request, stripe_signature)
|
| 24 |
|
| 25 |
|
|
|
|
| 20 |
@app.post("/webhook")
|
| 21 |
async def webhook_received(request: Request, stripe_signature: str = Header(None)):
|
| 22 |
|
| 23 |
+
return await funciones.procesa_evento(request, stripe_signature)
|
| 24 |
|
| 25 |
|