Moibe commited on
Commit
b43e2e7
·
1 Parent(s): 38b9b76
Files changed (2) hide show
  1. funciones.py +1 -1
  2. main.py +7 -0
funciones.py CHANGED
@@ -8,7 +8,7 @@ import time
8
  async def procesa_evento(request: Request, stripe_signature: str = Header(None)):
9
 
10
  print("Estoy en procesa evento....")
11
- time.sleep(17)
12
 
13
  webhook_secret = globales.webhook
14
  data = await request.body()
 
8
  async def procesa_evento(request: Request, stripe_signature: str = Header(None)):
9
 
10
  print("Estoy en procesa evento....")
11
+
12
 
13
  webhook_secret = globales.webhook
14
  data = await request.body()
main.py CHANGED
@@ -1,11 +1,18 @@
1
  import globales
2
  import funciones
3
  from fastapi import FastAPI, Request, Header
 
4
 
5
  app = FastAPI()
6
 
 
 
 
7
  string_key = globales.llave
8
 
 
 
 
9
  @app.get("/")
10
  def start():
11
  return {f"Status":"Deployed"}
 
1
  import globales
2
  import funciones
3
  from fastapi import FastAPI, Request, Header
4
+ import time
5
 
6
  app = FastAPI()
7
 
8
+ print("Cree fatapi...")
9
+ time.sleep(16)
10
+
11
  string_key = globales.llave
12
 
13
+ print ("Obtuve string key...")
14
+ time.sleep(15)
15
+
16
  @app.get("/")
17
  def start():
18
  return {f"Status":"Deployed"}