diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-05-23 21:36:12 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-05-23 21:36:12 +0200 |
commit | 5936c6aba13e682a0386564bf5798c19dae35819 (patch) | |
tree | befa0f2deaab5f02e6851670f2f7166ed4616ca6 /src/web/controllers/tag.py | |
parent | Improved display of bookmark's tags. And fixed some remainings merge related ... (diff) | |
download | newspipe-5936c6aba13e682a0386564bf5798c19dae35819.tar.gz newspipe-5936c6aba13e682a0386564bf5798c19dae35819.tar.bz2 newspipe-5936c6aba13e682a0386564bf5798c19dae35819.zip |
tags are lowercase
Diffstat (limited to 'src/web/controllers/tag.py')
-rw-r--r-- | src/web/controllers/tag.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/controllers/tag.py b/src/web/controllers/tag.py index a40387c9..203e9a7e 100644 --- a/src/web/controllers/tag.py +++ b/src/web/controllers/tag.py @@ -15,5 +15,9 @@ class BookmarkTagController(AbstractController): def count_by_href(self, **filters): return self._count_by(BookmarkTag.text, filters) + def create(self, **attrs): + attrs['text'] = attrs['text'].lower() + return super().create(**attrs) + def update(self, filters, attrs): return super().update(filters, attrs) |