aboutsummaryrefslogtreecommitdiffstats
path: root/scanner/TreeWalker.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-04-29 11:05:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-12 17:28:59 -0600
commitd33715066aab8bace17bb575a1787af40f86e67a (patch)
tree2b315dbdd7839a93b344a68cc1e4c23e4902ccb8 /scanner/TreeWalker.py
parentAdd semi-colon. (diff)
downloadPhotoFloat-d33715066aab8bace17bb575a1787af40f86e67a.tar.xz
PhotoFloat-d33715066aab8bace17bb575a1787af40f86e67a.zip
Restructuring
Import flask app as well as new makefile and entirely new directory structure.
Diffstat (limited to 'scanner/TreeWalker.py')
-rw-r--r--scanner/TreeWalker.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/scanner/TreeWalker.py b/scanner/TreeWalker.py
index c2dbd53..191b187 100644
--- a/scanner/TreeWalker.py
+++ b/scanner/TreeWalker.py
@@ -88,12 +88,6 @@ class TreeWalker:
fp = open(os.path.join(self.cache_path, "all_photos.json"), 'w')
json.dump(photo_list, fp, cls=PhotoAlbumEncoder)
fp.close()
- photo_list.reverse()
- message("caching", "latest photos path list")
- fp = open(os.path.join(self.cache_path, "latest_photos.json"), 'w')
- json.dump(photo_list[0:27], fp, cls=PhotoAlbumEncoder)
- fp.close()
-
def remove_stale(self):
message("cleanup", "building stale list")
all_cache_entries = { "all_photos.json": True, "latest_photos.json": True }