Antoni09 commited on
Commit
3a112ff
·
verified ·
1 Parent(s): c354158

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +0 -8
server.py CHANGED
@@ -54,14 +54,6 @@ def index():
54
  port = int(os.environ.get("PORT", "7860")) # Wcięcie pod warunkiem
55
  app.run(host="0.0.0.0", port=port, debug=False) # Wcięcie pod warunkiem
56
 
57
- @app.get("/")
58
- def index():
59
- # Pobierz ostatnie notatki i pokaż w HTML
60
- with engine.begin() as conn:
61
- rows = conn.execute(text(
62
- "SELECT id, body, created_at FROM notes ORDER BY id DESC LIMIT 20"
63
- )).mappings().all()
64
- return render_template("index.html", notes=rows)
65
 
66
  @app.post("/add")
67
  def add():
 
54
  port = int(os.environ.get("PORT", "7860")) # Wcięcie pod warunkiem
55
  app.run(host="0.0.0.0", port=port, debug=False) # Wcięcie pod warunkiem
56
 
 
 
 
 
 
 
 
 
57
 
58
  @app.post("/add")
59
  def add():