mirror of
https://github.com/taroved/pol
synced 2025-05-16 14:20:10 -07:00
js
This commit is contained in:
parent
2c9f191f5d
commit
334163ff07
@ -153,7 +153,7 @@ class Feed(object):
|
|||||||
feed = {}
|
feed = {}
|
||||||
|
|
||||||
with closing(get_conn(self.db_creds, dict_result=True)) as conn, conn as cur:
|
with closing(get_conn(self.db_creds, dict_result=True)) as conn, conn as cur:
|
||||||
cur.execute("""select f.name as feed_name, f.uri, f.xpath as feed_xpath, fi.name, ff.xpath, fi.required
|
cur.execute("""select f.name as feed_name, f.uri, f.js, f.xpath as feed_xpath, fi.name, ff.xpath, fi.required
|
||||||
from frontend_feed f
|
from frontend_feed f
|
||||||
right join frontend_feedfield ff on ff.feed_id=f.id
|
right join frontend_feedfield ff on ff.feed_id=f.id
|
||||||
left join frontend_field fi on fi.id=ff.field_id
|
left join frontend_field fi on fi.id=ff.field_id
|
||||||
@ -165,6 +165,7 @@ class Feed(object):
|
|||||||
feed['id'] = feed_id
|
feed['id'] = feed_id
|
||||||
feed['name'] = row['feed_name']
|
feed['name'] = row['feed_name']
|
||||||
feed['uri'] = row['uri']
|
feed['uri'] = row['uri']
|
||||||
|
feed['js'] = row['js']
|
||||||
feed['xpath'] = row['feed_xpath']
|
feed['xpath'] = row['feed_xpath']
|
||||||
feed['fields'] = {}
|
feed['fields'] = {}
|
||||||
feed['required'] = {}
|
feed['required'] = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user