mirror of
https://git.wownero.com/lza_menace/suchwow.git
synced 2024-08-15 01:03:19 +00:00
bug fix, store the fact we posted to reddit
This commit is contained in:
parent
7db1d41615
commit
f797925d5e
1 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
return
|
||||
|
||||
@app.cli.command("create_accounts")
|
||||
def create_accounts():
|
||||
|
|
Loading…
Reference in a new issue