@ -100,8 +100,12 @@ def post_reddit(last_hours):
).order_by(Post.timestamp.asc())
for p in posts:
if p.hours_elapsed() < int(last_hours):
make_post(p)
return
if not p.to_reddit:
_p = make_post(p)
if _p:
_p.to_reddit = True
_p.save()
@app.cli.command("create_accounts")
def create_accounts():