Remove archived files from bad files

This commit is contained in:
shortcutme 2017-03-12 13:13:08 +01:00
parent 96e45bb517
commit ec513f0b60
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -767,6 +767,8 @@ class ContentManager(object):
return False
if self.isArchived(inner_path, new_content["modified"]):
self.log.warning("%s this file is archived!" % inner_path)
if inner_path in self.site.bad_files:
del self.site.bad_files[inner_path]
return False
# Check sign
sign = new_content.get("sign")