diff options
Diffstat (limited to 'newspipe/web/controllers/tag.py')
-rw-r--r-- | newspipe/web/controllers/tag.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/newspipe/web/controllers/tag.py b/newspipe/web/controllers/tag.py new file mode 100644 index 00000000..35fd5613 --- /dev/null +++ b/newspipe/web/controllers/tag.py @@ -0,0 +1,22 @@ +import logging +import itertools +from datetime import datetime, timedelta + +from bootstrap import db +from .abstract import AbstractController +from web.models.tag import BookmarkTag + +logger = logging.getLogger(__name__) + + +class BookmarkTagController(AbstractController): + _db_cls = BookmarkTag + + def count_by_href(self, **filters): + return self._count_by(BookmarkTag.text, filters) + + def create(self, **attrs): + return super().create(**attrs) + + def update(self, filters, attrs): + return super().update(filters, attrs) |