Antoni09 commited on
Commit
eb4e98d
verified
1 Parent(s): 7362348

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +3 -3
server.py CHANGED
@@ -50,9 +50,9 @@ def index():
50
  )).mappings().all()
51
  return render_template("index.html", notes=rows)
52
 
53
- if __name__ == "__main__":
54
- port = int(os.environ.get("PORT", "7860"))
55
- app.run(host="0.0.0.0", port=port, debug=False)
56
 
57
  @app.get("/")
58
  def index():
 
50
  )).mappings().all()
51
  return render_template("index.html", notes=rows)
52
 
53
+ if __name__ == "__main__": # Sprawdzamy, czy uruchamiamy g艂贸wny skrypt
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():