aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers/bookmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/controllers/bookmark.py')
-rw-r--r--src/web/controllers/bookmark.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/web/controllers/bookmark.py b/src/web/controllers/bookmark.py
new file mode 100644
index 00000000..f7dab9d8
--- /dev/null
+++ b/src/web/controllers/bookmark.py
@@ -0,0 +1,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)
bgstack15