upd rss config and dict
This commit is contained in:
parent
db1348f4ed
commit
c421c885d4
@ -5,5 +5,7 @@
|
|||||||
"mysql_host": "",
|
"mysql_host": "",
|
||||||
"mysql_user": "",
|
"mysql_user": "",
|
||||||
"mysql_password": "",
|
"mysql_password": "",
|
||||||
"semAPI": "semanticscholar API"
|
"semAPI": "semanticscholar API",
|
||||||
|
"miniflux_host": "",
|
||||||
|
"miniflux_api": ""
|
||||||
}
|
}
|
3
rss.py
3
rss.py
@ -38,8 +38,7 @@ def load_rss():
|
|||||||
loaded.append(entry['id'])
|
loaded.append(entry['id'])
|
||||||
uploads.append({
|
uploads.append({
|
||||||
'q': entry['title'],
|
'q': entry['title'],
|
||||||
'a': entry['content'],
|
'a': entry['content']
|
||||||
'score':[]
|
|
||||||
})
|
})
|
||||||
count += 1
|
count += 1
|
||||||
if len(loaded) >= 100 and upload2fastgpt(uploads):
|
if len(loaded) >= 100 and upload2fastgpt(uploads):
|
||||||
|
Loading…
Reference in New Issue
Block a user