raghavNCI
commited on
Commit
·
bd81898
1
Parent(s):
8121f99
cache fix
Browse files- cache_init.py +2 -0
cache_init.py
CHANGED
@@ -35,6 +35,8 @@ def fetch_and_cache_articles():
|
|
35 |
response.raise_for_status()
|
36 |
articles = response.json().get("articles", [])
|
37 |
|
|
|
|
|
38 |
for article in articles:
|
39 |
article_id = generate_id(article["url"])
|
40 |
if not r.exists(f"article:{article_id}"):
|
|
|
35 |
response.raise_for_status()
|
36 |
articles = response.json().get("articles", [])
|
37 |
|
38 |
+
print("Articles fetched", articles)
|
39 |
+
|
40 |
for article in articles:
|
41 |
article_id = generate_id(article["url"])
|
42 |
if not r.exists(f"article:{article_id}"):
|