From 8f668eba003754fa208a76188cf6ecb58ac12878 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 22 Apr 2014 13:45:29 +0530 Subject: [PATCH] filter self.sync_alphabetically for allowed file extentions --- frappe/website/statics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/website/statics.py b/frappe/website/statics.py index b7c1748153..cb9e89c085 100644 --- a/frappe/website/statics.py +++ b/frappe/website/statics.py @@ -48,7 +48,7 @@ class sync(object): self.sync_using_given_index(basepath, folders, files) else: - self.sync_alphabetically(basepath, folders, files) + self.sync_alphabetically(basepath, folders, [filename for filename in files if filename.endswith('html') or filename.endswith('md')]) def get_index_txt(self, basepath, files):