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
+5
View File
@@ -1,3 +1,8 @@
# bnuy-api
POST_LIMIT=20
LOG_LEVEL=INFO
# Database MariaDB
DB_HOST=mariadb
DB_PORT=3306
DB_ROOT_PASSWORD=rootpassword
-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}"