upd rss config and dict

This commit is contained in:
mxr612 2024-08-23 01:57:09 +08:00
parent db1348f4ed
commit c421c885d4
2 changed files with 4 additions and 3 deletions

View File

@ -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
View File

@ -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):