Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Passing the tests now too
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jun 21, 2017
1 parent d4c1d88 commit 07da6b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bigbuild/management/commands/cachepages.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ def handle(self, *args, **options):

# Save the archived pages out to a new cache
with io.open(archive_cache_path, 'w', encoding='utf8') as f:
data = serializer.serialize(page_list)
data = serializer.serialize(page_list.archived_pages)
f.write(six.text_type(data))
8 changes: 4 additions & 4 deletions bigbuild/models/pagelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def get_archived_pages(self):
logger.debug("Loading cached archived page list")
with open(self.archived_cache_path, 'r') as f:
page_list = []
dobj_list = BigBuildJSONDeserializer(f.read())
for dobj in dobj_list:
if dobj.object.should_build():
page_list.append(dobj.object)
obj_list = [o.object for o in BigBuildJSONDeserializer(f.read())]
for obj in obj_list:
if obj.should_build():
page_list.append(obj)
# Otherwise get them from the YAML
else:
logger.debug("Retrieving YAML archived page list")
Expand Down

0 comments on commit 07da6b3

Please sign in to comment.