Skip to content

Commit

Permalink
Keep result fields of duplicated entries unless positive
Browse files Browse the repository at this point in the history
  • Loading branch information
liangent committed Feb 11, 2015
1 parent ca157b6 commit 4a57ea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion updatedyk.py
Expand Up @@ -259,7 +259,8 @@ def __init__(self, content, site, clean=True, quick=False):
if entry.template.params[u'article'] not in articles:
articles.add(entry.template.params[u'article'])
else:
entry.template.params[u'result'] = u''
if entry.check_result(site, u'Wikipedia:新条目推荐/候选', False):
entry.template.params[u'result'] = u''
entry.template.params[u'bot'] = u'duplicate'

def __unicode__(self):
Expand Down

0 comments on commit 4a57ea9

Please sign in to comment.