How to save data in flask even after refreshing?

Solution
app = Flask(.....)
process = []


@app.route('/awesome-url', methods=('GET', 'POST'))
def my_func():
    global process
    t = threading.thread(target=start)
    process.append(t)
    t.start()