update .env.example and remove debugging line
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user