From 2090725f40c69f04c25c282ba883c3bed206a2a3 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Fri, 9 Jun 2023 22:39:09 +0200 Subject: [PATCH] seltsames Session kram --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index efdec4d..67b26f1 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ import queue from flask import Flask, render_template, request, make_response, session from flask_socketio import SocketIO #https://pythonprogramminglanguage.com/python-flask-websocket/ +from flask.ext.session import Session import sqlite3 import time import atexit @@ -13,8 +14,10 @@ c = conn.cursor() app = Flask(__name__) key = str(uuid.uuid4().hex) +SESSION_TYPE = 'redis' print(key) app.secret_key = key +Session(app) socketio = SocketIO(app)