remove debug print statements from fetch_subreddit function

This commit is contained in:
2026-01-11 15:11:49 +00:00
parent 2a8e3fd4db
commit b5a2b01402

View File

@@ -23,9 +23,6 @@ def index(search, limit = 10):
def fetch_subreddit(subreddit, limit = 10):
posts = reddit_connector.get_top_subreddit_posts(subreddit, limit=limit, timeframe='all')
for post in posts:
print(f"Post Title: {post.title}, Content: {post.content[:30]}...")
db.execute_many(
"""INSERT INTO ethnograph.posts (title, content, author_username, created_utc)
VALUES (%s, %s, %s, to_timestamp(%s));""",