Adds ability to add a catch-all tag

EmailTemplateFixes
Denis Krienbühl 2012-01-17 11:34:06 +01:00
parent ab5d9b5097
commit 226daafb24
1 changed files with 3 additions and 0 deletions

View File

@ -766,6 +766,9 @@ def answer_summary(questionnaire, answers=None):
def has_tag(tag, runinfo):
""" Returns true if the given runinfo contains the given tag. """
if tag == '<any>':
return True
return tag in (t.strip() for t in runinfo.tags.split(','))