Compare commits
2 commits
4d0f81dfa7
...
b293f43be9
Author | SHA256 | Date | |
---|---|---|---|
b293f43be9 | |||
ce672b6bd3 |
1 changed files with 5 additions and 2 deletions
|
@ -9,5 +9,8 @@ def index():
|
|||
|
||||
@app.route('/fortune')
|
||||
def fortune():
|
||||
fortune = os.run('/usr/bin/fortune')
|
||||
return render_template('fortune.j2', fortune=fortune)
|
||||
fortune = os.popen("fortune").read()
|
||||
return render_template('fortune.j2', fortune=fortune)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host="0.0.0.0", port=8080)
|
Loading…
Add table
Reference in a new issue