Update app.py
Browse files
app.py
CHANGED
@@ -302,18 +302,18 @@ def load_gallery_actu(gallery):
|
|
302 |
gallery=add_gallery(c[0],c[1],gallery)
|
303 |
return gallery
|
304 |
|
305 |
-
def add_cache_image(o,m):
|
306 |
cache_image.append((o,m))
|
307 |
#cache_image=sorted(cache_image, key=itemgetter(1))
|
308 |
return
|
309 |
-
def add_cache_image_actu(o,
|
310 |
cache_image_actu.append((o,m))
|
311 |
#cache_image_actu=sorted(cache_image_actu, key=itemgetter(1))
|
312 |
return
|
313 |
-
def reset_cache_image():
|
314 |
cache_image.clear()
|
315 |
return
|
316 |
-
def reset_cache_image_actu():
|
317 |
cache_image_actu.clear()
|
318 |
return
|
319 |
|
|
|
302 |
gallery=add_gallery(c[0],c[1],gallery)
|
303 |
return gallery
|
304 |
|
305 |
+
def add_cache_image(o,m,cache_image=cache_image):
|
306 |
cache_image.append((o,m))
|
307 |
#cache_image=sorted(cache_image, key=itemgetter(1))
|
308 |
return
|
309 |
+
def add_cache_image_actu(o,mcache_image_actu=cache_image_actu):
|
310 |
cache_image_actu.append((o,m))
|
311 |
#cache_image_actu=sorted(cache_image_actu, key=itemgetter(1))
|
312 |
return
|
313 |
+
def reset_cache_image(cache_image=cache_image):
|
314 |
cache_image.clear()
|
315 |
return
|
316 |
+
def reset_cache_image_actu(cache_image_actu=cache_image_actu):
|
317 |
cache_image_actu.clear()
|
318 |
return
|
319 |
|