update .env.example and remove debugging line

This commit is contained in:
2026-05-11 16:03:04 +02:00
parent 9dc13fb9be
commit 0c5725d157
2 changed files with 5 additions and 1 deletions
-1
View File
@@ -11,7 +11,6 @@ async def get_latest_hot_posts(subreddits):
post_limit = os.getenv("POST_LIMIT", 20)
headers = {"User-Agent": "Mozilla/5.0 (compatible; bnuy-api/0.0.1)"}
posts = []
logging.info(f"SUBREDDITS raw: {subreddits!r}, split: {subreddits.split(',')!r}")
for subreddit in subreddits.split(","):
url = f"https://www.reddit.com/r/{subreddit.strip()}/hot.rss?limit={post_limit}"