aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-02-13 15:27:13 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-02-13 15:27:13 +0100
commit879427aa740f399aecd31c0e12909e6f39705f5e (patch)
tree5bb2d792e7211c763db550eaf8f0c676e37aa25a /src/web/controllers
parentMerge branch 'master' of github.com:newspipe/newspipe into bookmark (diff)
downloadnewspipe-879427aa740f399aecd31c0e12909e6f39705f5e.tar.gz
newspipe-879427aa740f399aecd31c0e12909e6f39705f5e.tar.bz2
newspipe-879427aa740f399aecd31c0e12909e6f39705f5e.zip
wip
Diffstat (limited to 'src/web/controllers')
-rw-r--r--src/web/controllers/abstract.py1
-rw-r--r--src/web/controllers/bookmark.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py
index 8563d5f2..074ce24c 100644
--- a/src/web/controllers/abstract.py
+++ b/src/web/controllers/abstract.py
@@ -100,6 +100,7 @@ class AbstractController:
def update(self, filters, attrs, return_objs=False, commit=True):
assert attrs, "attributes to update must not be empty"
+ print(attrs)
result = self._get(**filters).update(attrs, synchronize_session=False)
if commit:
db.session.flush()
diff --git a/src/web/controllers/bookmark.py b/src/web/controllers/bookmark.py
index cf7815a8..f7dab9d8 100644
--- a/src/web/controllers/bookmark.py
+++ b/src/web/controllers/bookmark.py
@@ -16,5 +16,5 @@ class BookmarkController(AbstractController):
return self._count_by(Bookmark.href, filters)
def update(self, filters, attrs, *args, **kwargs):
- self.tags = attrs['tags']
+ #self.tag_objs = attrs['tags']
return super().update(filters, attrs, *args, **kwargs)
bgstack15