blob: a0bd1afd2aa2428798d8be478ee3c50e4e15dbd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import logging
from newspipe.models.tag import BookmarkTag
from .abstract import AbstractController
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)
|