Remove condition

main
Bob Mottram 2020-10-18 11:35:25 +01:00
parent ab48e6d456
commit 43096d087a
1 changed files with 0 additions and 3 deletions

View File

@ -251,9 +251,6 @@ def newswireHashtagProcessing(session, baseDir: str, postJsonObject: {},
tagsInConditions = [] tagsInConditions = []
tree = hashtagRuleTree(operators, conditionsStr, tree = hashtagRuleTree(operators, conditionsStr,
tagsInConditions, moderated) tagsInConditions, moderated)
# does the rule contain any hashtags?
if not tagsInConditions:
continue
if not hashtagRuleResolve(tree, hashtags, moderated, content): if not hashtagRuleResolve(tree, hashtags, moderated, content):
continue continue
# the condition matches, so do something # the condition matches, so do something