raghavNCI
commited on
Commit
·
6eae0b8
1
Parent(s):
0b7d949
changes in limit
Browse files
routes.py
CHANGED
@@ -8,7 +8,7 @@ load_dotenv()
|
|
8 |
router = APIRouter()
|
9 |
|
10 |
@router.get("/news/category/{category}")
|
11 |
-
def get_cached_articles_by_category(category: str, limit: int
|
12 |
try:
|
13 |
article_ids = list(r.smembers(f"category:{category}"))[:limit]
|
14 |
articles = []
|
|
|
8 |
router = APIRouter()
|
9 |
|
10 |
@router.get("/news/category/{category}")
|
11 |
+
def get_cached_articles_by_category(category: str, limit: int):
|
12 |
try:
|
13 |
article_ids = list(r.smembers(f"category:{category}"))[:limit]
|
14 |
articles = []
|