fix old_cache check

master
lub 2 years ago
parent 282b00daca
commit b2c23d0446

@ -2,6 +2,7 @@ from os import environ
import asyncio import asyncio
import re import re
from copy import deepcopy
from datetime import datetime, timedelta from datetime import datetime, timedelta
from random import randrange from random import randrange
@ -146,7 +147,7 @@ async def main():
cache[category] = [] cache[category] = []
if hasattr(cache_state, 'content') and 'url_list' in cache_state.content: if hasattr(cache_state, 'content') and 'url_list' in cache_state.content:
cache[category] += cache_state.content['url_list'] cache[category] += cache_state.content['url_list']
old_cache = cache old_cache = deepcopy(cache)
# scrape all blog posts and process them # scrape all blog posts and process them
blog = get_blog() blog = get_blog()

Loading…
Cancel
Save