blob: f7dab9d8da498fac91a03f53ffad72c796cb0c37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import logging
import itertools
from datetime import datetime, timedelta
from bootstrap import db
from .abstract import AbstractController
from web.models import Bookmark
logger = logging.getLogger(__name__)
class BookmarkController(AbstractController):
_db_cls = Bookmark
def count_by_href(self, **filters):
return self._count_by(Bookmark.href, filters)
def update(self, filters, attrs, *args, **kwargs):
#self.tag_objs = attrs['tags']
return super().update(filters, attrs, *args, **kwargs)
|