make sure we only do one post at a time
This commit is contained in:
parent
94b58f7437
commit
a16176cfd6
|
@ -73,6 +73,7 @@ def reddit_recent():
|
||||||
recent_post = diff < timedelta(hours=2)
|
recent_post = diff < timedelta(hours=2)
|
||||||
if recent_post:
|
if recent_post:
|
||||||
make_post(post)
|
make_post(post)
|
||||||
|
return
|
||||||
|
|
||||||
@app.cli.command("reddit_random")
|
@app.cli.command("reddit_random")
|
||||||
def reddit_random():
|
def reddit_random():
|
||||||
|
|
Loading…
Reference in New Issue