Update limit validation in generate_channel_rss to allow a maximum of 200 instead of 100

This commit is contained in:
vvzvlad
2025-03-22 13:55:04 +03:00
parent 5e23bfe34f
commit ac2c06fe22
+2 -2
View File
@@ -263,8 +263,8 @@ async def generate_channel_rss(channel: str,
"""
if limit < 1:
raise ValueError(f"limit must be positive, got {limit}")
if limit > 100:
raise ValueError(f"limit cannot exceed 100, got {limit}")
if limit > 200:
raise ValueError(f"limit cannot exceed 200, got {limit}")
try:
if post_parser is None: