import time from flask import Flask, redirect, url_for app = Flask(__name__) updates = ["INIT"] @app.route("/") def hello_world(): update_times = "\n".join([f"
  • {i}
  • " for i in updates]) return f"

    Hello, World!


    UPDATES

    {update_times}" @app.route("/update") def update(): current_time = time.ctime() updates.append(str(current_time)) return redirect(url_for('hello_world'))