rescan metadata before serving collections
authorchrysn <chrysn@fsfe.org>
Fri, 4 Apr 2014 12:26:16 +0000 (14:26 +0200)
committerJelmer Vernooń≥ <jelmer@jelmer.uk>
Sun, 10 Apr 2016 11:43:29 +0000 (11:43 +0000)
calypso/paths.py

index ec284c7..68b7932 100644 (file)
@@ -99,7 +99,9 @@ def enumerate_collection_paths():
 def enumerate_collections():
     from calypso import collection_singleton
     for p in enumerate_collection_paths():
-        yield collection_singleton(p)
+        c = collection_singleton(p)
+        c.scan_metadata(False)
+        yield c
 
 #
 # Given a URL, return the parent URL by stripping off