countdown
This commit is contained in:
parent
2c3f17db86
commit
ccd7982e66
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from flask import Blueprint, render_template, request, redirect, url_for, jsonify
|
||||
import json
|
||||
import os
|
||||
import threading
|
||||
from app.utils import gpio_handler, countdown, zeitmessung, system_tools
|
||||
|
||||
main = Blueprint("main", __name__)
|
||||
|
|
@ -17,8 +18,9 @@ def rennen_starten():
|
|||
|
||||
@main.route("/countdown_starten", methods=["POST"])
|
||||
def countdown_starten():
|
||||
countdown.start()
|
||||
return redirect(url_for("main.rennansicht"))
|
||||
# Countdown in einem Hintergrundthread starten
|
||||
#threading.Thread(target=countdown.start).start()
|
||||
return render_template("countdown.html")
|
||||
|
||||
@main.route("/rennansicht")
|
||||
def rennansicht():
|
||||
|
|
|
|||
Reference in a new issue