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
|
from flask import Flask
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
|
@ -18,5 +20,6 @@ def scoreboard():
|
||||||
@app.route('/problems')
|
@app.route('/problems')
|
||||||
def problems():
|
def problems():
|
||||||
return
|
return
|
||||||
|
if __name__ == "__main__":
|
||||||
app.run(port=8000)
|
app.debug = "--debug" in sys.argv
|
||||||
|
app.run(port=8000)
|
||||||
|
|
Loading…
Reference in a new issue