diff --git a/bringrss/bringdb.py b/bringrss/bringdb.py index 0ca37fb..1a0bdf1 100644 --- a/bringrss/bringdb.py +++ b/bringrss/bringdb.py @@ -79,7 +79,7 @@ class BDBFeedMixin: 'icon': icon, 'ui_order_rank': ui_order_rank, } - self.insert(table=objects.Feed, data=data) + self.insert(table=objects.Feed, pairs=data) feed = self.get_cached_instance(objects.Feed, data) return feed @@ -179,7 +179,7 @@ class BDBFilterMixin: 'conditions': conditions, 'actions': actions, } - self.insert(table=objects.Filter, data=data) + self.insert(table=objects.Filter, pairs=data) filt = self.get_cached_instance(objects.Filter, data) return filt @@ -285,7 +285,7 @@ class BDBNewsMixin: 'authors': authors, 'enclosures': enclosures, } - self.insert(table=objects.News, data=data) + self.insert(table=objects.News, pairs=data) news = self.get_cached_instance(objects.News, data) return news diff --git a/bringrss/objects.py b/bringrss/objects.py index e5037d6..78c5ce2 100644 --- a/bringrss/objects.py +++ b/bringrss/objects.py @@ -502,7 +502,7 @@ class Feed(ObjectBase): 'filter_id': filt.id, 'order_rank': index + 1, } - self.bringdb.insert(table='feed_filter_rel', data=data) + self.bringdb.insert(table='feed_filter_rel', pairs=data) @worms.atomic def set_http_headers(self, http_headers):