Skip to content

Commit

Permalink
Remove bad status from deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroNet committed Aug 10, 2016
1 parent bed66cd commit 7bd7627
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Content/ContentManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ def loadContent(self, content_inner_path="content.json", add_bad_files=True, del
if add_bad_files:
for inner_path in changed:
self.site.bad_files[inner_path] = self.site.bad_files.get(inner_path, 0) + 1
for inner_path in deleted:
if inner_path in self.site.bad_files:
del self.site.bad_files[inner_path]

if new_content["modified"] > self.site.settings.get("modified", 0):
# Dont store modifications in the far future (more than 10 minute)
Expand Down

0 comments on commit 7bd7627

Please sign in to comment.