Slow down rss feed updates so that the cpu doesn't get as stressed

main
Bob Mottram 2022-04-27 18:12:25 +01:00
parent 53174ddfd8
commit 94ac7c13dc
1 changed files with 1 additions and 0 deletions

View File

@ -1610,6 +1610,7 @@ def get_dict_from_newswire(session, base_dir: str, domain: str,
if items_list: if items_list:
for date_str, item in items_list.items(): for date_str, item in items_list.items():
result[date_str] = item result[date_str] = item
time.sleep(4)
# add blogs from each user account # add blogs from each user account
_add_blogs_to_newswire(base_dir, domain, result, _add_blogs_to_newswire(base_dir, domain, result,