|
|
@ -77,6 +77,7 @@ def reddit_recent():
|
|
|
|
reddit_post = Reddit().post(title, url)
|
|
|
|
reddit_post = Reddit().post(title, url)
|
|
|
|
post.reddit_url = reddit_post.url
|
|
|
|
post.reddit_url = reddit_post.url
|
|
|
|
post.save()
|
|
|
|
post.save()
|
|
|
|
|
|
|
|
print(f"Posted #{post.id} to Reddit - {reddit_post.url}")
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
@app.cli.command("reddit_random")
|
|
|
|
@app.cli.command("reddit_random")
|
|
|
@ -89,6 +90,7 @@ def reddit_random():
|
|
|
|
reddit_post = Reddit().post(title, url)
|
|
|
|
reddit_post = Reddit().post(title, url)
|
|
|
|
post.reddit_url = reddit_post.url
|
|
|
|
post.reddit_url = reddit_post.url
|
|
|
|
post.save()
|
|
|
|
post.save()
|
|
|
|
|
|
|
|
print(f"Posted #{post.id} to Reddit - {reddit_post.url}")
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
@app.cli.command("payout_users")
|
|
|
|
@app.cli.command("payout_users")
|
|
|
|