Tagging fixes

This commit is contained in:
Manuel Ebert 2013-07-23 21:01:57 -07:00
parent 19f6fd3672
commit db11803791
4 changed files with 7 additions and 2 deletions

View file

@ -16,6 +16,7 @@ class Entry:
def parse_tags(self):
fulltext = " ".join([self.title, self.body]).lower()
tags = re.findall(r'(?u)([{tags}]\w+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE)
self.tags = tags
return set(tags)
def __unicode__(self):