Add if "__name__" == "__main__"
This commit is contained in:
parent
15f408e9d9
commit
c48ee7410d
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
from flask import Flask
|
||||
|
||||
import sys
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
|
@ -18,5 +20,6 @@ def scoreboard():
|
|||
@app.route('/problems')
|
||||
def problems():
|
||||
return
|
||||
|
||||
app.run(port=8000)
|
||||
if __name__ == "__main__":
|
||||
app.debug = "--debug" in sys.argv
|
||||
app.run(port=8000)
|
||||
|
|
Loading…
Reference in a new issue