mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fix feeds
This commit is contained in:
parent
4025f15e1a
commit
d4c44da126
|
@ -374,9 +374,9 @@ async def discussion_handler():
|
||||||
continue # ignore this wiki if it throws errors
|
continue # ignore this wiki if it throws errors
|
||||||
try:
|
try:
|
||||||
discussion_feed_resp = await feeds_response.json(encoding="UTF-8")
|
discussion_feed_resp = await feeds_response.json(encoding="UTF-8")
|
||||||
if "title" in discussion_feed_resp:
|
if "error" in discussion_feed_resp:
|
||||||
error = discussion_feed_resp["error"]
|
error = discussion_feed_resp["error"]
|
||||||
if error == "site doesn't exists": # Discussions disabled
|
if error == "NotFoundException": # Discussions disabled
|
||||||
if db_wiki["rcid"] != -1: # RC feed is disabled
|
if db_wiki["rcid"] != -1: # RC feed is disabled
|
||||||
db_cursor.execute("UPDATE rcgcdw SET postid = ? WHERE wiki = ?",
|
db_cursor.execute("UPDATE rcgcdw SET postid = ? WHERE wiki = ?",
|
||||||
("-1", db_wiki["wiki"],))
|
("-1", db_wiki["wiki"],))
|
||||||
|
|
Loading…
Reference in a new issue