aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-23 21:36:12 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-23 21:36:12 +0200
commit5936c6aba13e682a0386564bf5798c19dae35819 (patch)
treebefa0f2deaab5f02e6851670f2f7166ed4616ca6 /src/web/controllers
parentImproved display of bookmark's tags. And fixed some remainings merge related ... (diff)
downloadnewspipe-5936c6aba13e682a0386564bf5798c19dae35819.tar.gz
newspipe-5936c6aba13e682a0386564bf5798c19dae35819.tar.bz2
newspipe-5936c6aba13e682a0386564bf5798c19dae35819.zip
tags are lowercase
Diffstat (limited to 'src/web/controllers')
-rw-r--r--src/web/controllers/tag.py4
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)
bgstack15