Update worms, insert data renamed to pairs.

This commit is contained in:
voussoir 2022-08-13 13:04:44 -07:00
parent e30555fc4e
commit a4e098136a
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ class BDBFeedMixin:
'icon': icon, 'icon': icon,
'ui_order_rank': ui_order_rank, '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) feed = self.get_cached_instance(objects.Feed, data)
return feed return feed
@ -179,7 +179,7 @@ class BDBFilterMixin:
'conditions': conditions, 'conditions': conditions,
'actions': actions, 'actions': actions,
} }
self.insert(table=objects.Filter, data=data) self.insert(table=objects.Filter, pairs=data)
filt = self.get_cached_instance(objects.Filter, data) filt = self.get_cached_instance(objects.Filter, data)
return filt return filt
@ -285,7 +285,7 @@ class BDBNewsMixin:
'authors': authors, 'authors': authors,
'enclosures': enclosures, 'enclosures': enclosures,
} }
self.insert(table=objects.News, data=data) self.insert(table=objects.News, pairs=data)
news = self.get_cached_instance(objects.News, data) news = self.get_cached_instance(objects.News, data)
return news return news

View file

@ -502,7 +502,7 @@ class Feed(ObjectBase):
'filter_id': filt.id, 'filter_id': filt.id,
'order_rank': index + 1, 'order_rank': index + 1,
} }
self.bringdb.insert(table='feed_filter_rel', data=data) self.bringdb.insert(table='feed_filter_rel', pairs=data)
@worms.atomic @worms.atomic
def set_http_headers(self, http_headers): def set_http_headers(self, http_headers):