From 68f86c8ad717b9ede430449ebde64419a06e8b4b Mon Sep 17 00:00:00 2001 From: nabinhait Date: Wed, 6 Jul 2011 12:41:07 +0530 Subject: [PATCH] double feed bug --- home/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/__init__.py b/home/__init__.py index 44c9042d85..36dbacfa80 100644 --- a/home/__init__.py +++ b/home/__init__.py @@ -91,8 +91,11 @@ def update_feed1(doc): subject = subject % doc.fields make_feed(doc, subject, color) -def update_feed(doc): +def update_feed(doc, method): "adds a new feed" + if method=='validate': + return + subject, color = feed_dict.get(doc.doctype, [None, None]) if subject: subject = subject % doc.fields