linkding/bookmarks/utils.py
Sascha Ißbrücker 9df270557f
Make tag search and assignment case insensitive (#56)
* Make tag assignment and search case-insensitive (#45)

* Add tests for tag case-sensitivity and deduplication (#45)

Co-authored-by: Sascha Ißbrücker <sissbruecker@lyska.io>
2021-01-02 11:30:20 +01:00

2 lines
101 B
Python

def unique(elements, key):
return list({key(element): element for element in elements}.values())