Update worms, insert data renamed to pairs.
This commit is contained in:
parent
e30555fc4e
commit
a4e098136a
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue