Merge branch 'filter-by-tags' into 'master'

Added ability to filter entries by tag

Closes #26

See merge request chaica/feed2toot!11
This commit is contained in:
Matthew Lorentz 2023-01-21 21:38:43 +00:00
commit 03bd0cd89b
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class FilterEntry:
# not case sensitive, so we compare the lower case
for pattern in self.options['patterns'][patternlist]:
finalpattern = pattern.lower()
finaltitle = self.entry[patternlist.split('_')[0]].lower()
finaltitle = str(self.entry[patternlist.split('_')[0]]).lower()
if finalpattern in finaltitle:
self.matching[i] = self.entry[i]
else: