mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 15:53:07 +02:00
viewport: Make sure we do not end up with duplicate tags when forcing
This commit is contained in:
parent
ef2842f217
commit
5606d8dc57
1 changed files with 2 additions and 0 deletions
|
@ -104,11 +104,13 @@ class ViewPort(object):
|
|||
for token in filter(lambda x: x.isupper(), taskfilter_args):
|
||||
if token.startswith('!+'):
|
||||
tokens_to_remove.add(token)
|
||||
tokens_to_remove.add('+' + token[2:])
|
||||
tokens_to_remove.add('-' + token[2:])
|
||||
tokens_to_add.add('+' + token[2:])
|
||||
elif token.startswith('!-'):
|
||||
tokens_to_remove.add(token)
|
||||
tokens_to_remove.add('+' + token[2:])
|
||||
tokens_to_remove.add('-' + token[2:])
|
||||
tokens_to_add.add('-' + token[2:])
|
||||
elif token.startswith('!?'):
|
||||
tokens_to_remove.add(token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue