DBFahrerKaterchen3 commited on
Commit
339c1cb
·
verified ·
1 Parent(s): 9f025e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def serve_html():
20
  # -----------------------------
21
  @app.post("/send")
22
  def send(name: str = Form(...), message: str = Form(...)):
23
- requests.post(WEBHOOK, json={"content": f"#Neue Kontaktanfrage\n**Von** {name}:\n**Nachricht**:\n{message}"})
24
  return {"status": "ok"}
25
 
26
  app.mount("/static", StaticFiles(directory="static"), name="static")
 
20
  # -----------------------------
21
  @app.post("/send")
22
  def send(name: str = Form(...), message: str = Form(...)):
23
+ requests.post(WEBHOOK, json={"content": f"# Neue Kontaktanfrage\n**Von** {name}:\n**Nachricht**:\n{message}"})
24
  return {"status": "ok"}
25
 
26
  app.mount("/static", StaticFiles(directory="static"), name="static")