dinner_vote/start.py

21 lines
470 B
Python
Raw Normal View History

2024-09-10 10:55:19 +08:00
import subprocess, os
from flask import render_template, redirect
import threading
from dinner import *
from session import app
lock = threading.Lock()
@app.route('/')
def index():
return redirect('dinner')
# return render_template('index.html')
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), 'fd-logo.png')
if __name__ == '__main__':
app.run(host="0.0.0.0", port=80, debug=True, threaded=True)