app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import time
|
| 2 |
-
from flask import Flask
|
| 3 |
app = Flask(__name__)
|
| 4 |
|
| 5 |
updates = ["INIT"]
|
|
@@ -16,3 +16,4 @@ def update():
|
|
| 16 |
current_time = time.ctime()
|
| 17 |
|
| 18 |
updates.append(str(current_time))
|
|
|
|
|
|
| 1 |
import time
|
| 2 |
+
from flask import Flask, redirect, url_for
|
| 3 |
app = Flask(__name__)
|
| 4 |
|
| 5 |
updates = ["INIT"]
|
|
|
|
| 16 |
current_time = time.ctime()
|
| 17 |
|
| 18 |
updates.append(str(current_time))
|
| 19 |
+
return redirect(url_for('hello_world'))
|