1. Roma Sokolov
  2. remarkz

Commits

Roma Sokolov  committed 2190e8c

tags now unique, thx Sevenov

  • Participants
  • Parent commits 6ea964b
  • Branches default

Comments (0)

Files changed (1)

File utils.py

View file
     @wraps(func)
     def wrapper(tags=''):
         if tags:
-            return func(*(filter(None, map(unicode.strip, tags.split('/')))))
+            return func(*set((tag.lower().strip() for tag
+                              in tags.split('/') if tag)))
         else:
             return func()
     return wrapper