double feed bug
This commit is contained in:
parent
8aee9acfce
commit
68f86c8ad7
@ -91,8 +91,11 @@ def update_feed1(doc):
|
|||||||
subject = subject % doc.fields
|
subject = subject % doc.fields
|
||||||
make_feed(doc, subject, color)
|
make_feed(doc, subject, color)
|
||||||
|
|
||||||
def update_feed(doc):
|
def update_feed(doc, method):
|
||||||
"adds a new feed"
|
"adds a new feed"
|
||||||
|
if method=='validate':
|
||||||
|
return
|
||||||
|
|
||||||
subject, color = feed_dict.get(doc.doctype, [None, None])
|
subject, color = feed_dict.get(doc.doctype, [None, None])
|
||||||
if subject:
|
if subject:
|
||||||
subject = subject % doc.fields
|
subject = subject % doc.fields
|
||||||
|
Loading…
Reference in New Issue
Block a user