diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-02 08:37:40 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-02 08:37:40 +0100 |
commit | 245a1e972deee0329c6254496e45dc1959ab6156 (patch) | |
tree | dab805eb0fcf18fca756cf87b0e6316efa81552f /src/web | |
parent | Only set those two options when using SQLAlchemy. (diff) | |
download | newspipe-245a1e972deee0329c6254496e45dc1959ab6156.tar.gz newspipe-245a1e972deee0329c6254496e45dc1959ab6156.tar.bz2 newspipe-245a1e972deee0329c6254496e45dc1959ab6156.zip |
set result to None by default
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/controllers/abstract.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py index 570fe062..58532660 100644 --- a/src/web/controllers/abstract.py +++ b/src/web/controllers/abstract.py @@ -103,6 +103,7 @@ class AbstractController: def update(self, filters, attrs): assert attrs, "attributes to update must not be empty" + result = None try: result = self._get(**filters).update(attrs, synchronize_session=False) db.session.commit() |