Add requests timeouts and temporary logging

This commit is contained in:
2020-07-04 00:25:41 +00:00
parent d614ad0743
commit 850b30e353
3 changed files with 28 additions and 7 deletions

View File

@@ -184,7 +184,7 @@ def feed_thread():
database.del_ref(item['ref'])
logging.info('Removed ref {}'.format(item['ref']))
gevent.sleep(6)
gevent.sleep(60)
news_index += 1
if news_index == FEED_LENGTH: news_index = 0