about summary refs log tree commit diff
path: root/solve.py
diff options
context:
space:
mode:
Diffstat (limited to 'solve.py')
-rw-r--r--solve.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/solve.py b/solve.py
index 06daab1..6b18f81 100644
--- a/solve.py
+++ b/solve.py
@@ -664,14 +664,12 @@ while True:
         with open('cache.pickle', 'wb') as handle:
             pickle.dump(cache, handle, protocol=pickle.HIGHEST_PROTOCOL)
 
+        cache_human_readable = open("cache.md", "w")
+        cache_human_readable.write(f"# cache\n```\n")
         for k in cache:
-
-            cache_human_readable = open("cache.md", "w")
-            cache_human_readable.write(f"# cache\n```\n")
-            for k in cache:
-                cache_human_readable.write(f"{k}: {cache[k]}\n")
-                print(k)
-            cache_human_readable.write(f"```")
+            cache_human_readable.write(f"{k}: {cache[k]}\n")
+            print(k)
+        cache_human_readable.write(f"```")
 
 
         break