update .env.example and remove debugging line
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
# bnuy-api
|
||||
POST_LIMIT=20
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
# Database MariaDB
|
||||
DB_HOST=mariadb
|
||||
DB_PORT=3306
|
||||
DB_ROOT_PASSWORD=rootpassword
|
||||
|
||||
@@ -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