]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/lightcards.py
Cache the stack and headers
[lightcards.git] / lightcards / lightcards.py
index d170b354a048f43fc9bd0fd24afe169172d27d6d..b4b459860ae535e95bc7a8fe72165d66b79d11a1 100644 (file)
@@ -55,6 +55,14 @@ def show(args, stack, headers):
     else:
         idx = Status()
 
+    stackb = progress.dive("stack", stack)
+    if stackb and not args.purge:
+        stack = stackb
+
+    headerb = progress.dive("headers", stack)
+    if headerb and not args.purge:
+        headers = headerb
+
     if args.flip:
         for x in stack:
             x[0], x[1] = x[1], x[0]