DemiPoto commited on
Commit
4ba912c
·
verified ·
1 Parent(s): 8cd05c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -323,8 +323,8 @@ def reset_cache_image_actu(id,cache_image_actu=cache_image_actu):
323
  cache_image_actu[f"{id}"].clear()
324
  return
325
  def reset_cache_image_all_sessions(cache_image=cache_image):
326
- for key, list in cache_image:
327
- list.clear()
328
  return
329
 
330
  def set_session(id):
@@ -338,9 +338,9 @@ def set_session(id):
338
  def print_info_sessions():
339
  lenTot=0
340
  print("numbre of sessions : "+str(len(cache_image)))
341
- for key, list in cache_image:
342
- print(key+str(len(list)))
343
- lenTot+=len(list)
344
  print("images total = "+str(lenTot))
345
  return
346
 
 
323
  cache_image_actu[f"{id}"].clear()
324
  return
325
  def reset_cache_image_all_sessions(cache_image=cache_image):
326
+ for key, listT in cache_image:
327
+ listT.clear()
328
  return
329
 
330
  def set_session(id):
 
338
  def print_info_sessions():
339
  lenTot=0
340
  print("numbre of sessions : "+str(len(cache_image)))
341
+ for key, listT in cache_image:
342
+ print(key+str(len(listT)))
343
+ lenTot+=len(listT)
344
  print("images total = "+str(lenTot))
345
  return
346