bug fix, store the fact we posted to reddit

pull/4/head
lza_menace 4 years ago
parent 7db1d41615
commit f797925d5e

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

Loading…
Cancel
Save