Turing311 commited on
Commit
a818e9b
1 Parent(s): e372c6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,8 +17,10 @@ def add_to_session(key, value):
17
  uid = uuid.uuid4()
18
  SESSION_DICT[uid] = value
19
  session[key] = uid
 
20
 
21
  def get_session_data(key):
 
22
  if key not in session or session[key] not in SESSION_DICT:
23
  return None
24
  return SESSION_DICT[session[key]]
@@ -48,7 +50,7 @@ def face_recognition(face_payload):
48
 
49
  @app.route("/")
50
  def index():
51
- return redirect(url_for('id_type', _scheme="https"))
52
 
53
  @app.route("/id_type/", methods=['GET'])
54
  def id_type():
 
17
  uid = uuid.uuid4()
18
  SESSION_DICT[uid] = value
19
  session[key] = uid
20
+ print('ADD SESSION', key, uid)
21
 
22
  def get_session_data(key):
23
+ print('GET FROM SESSION', session, SESSION_DICT)
24
  if key not in session or session[key] not in SESSION_DICT:
25
  return None
26
  return SESSION_DICT[session[key]]
 
50
 
51
  @app.route("/")
52
  def index():
53
+ return redirect(url_for('id_type'))
54
 
55
  @app.route("/id_type/", methods=['GET'])
56
  def id_type():