forked from rDrama/rDrama
dont run _create_post if no file orgy
parent
45568afdb6
commit
14dcbb100d
|
@ -138,6 +138,9 @@ def get_names():
|
||||||
return ' and '.join([x[0] for x in g.db.query(Orgy.title).filter_by(type='file').order_by(Orgy.start_utc).limit(2)])
|
return ' and '.join([x[0] for x in g.db.query(Orgy.title).filter_by(type='file').order_by(Orgy.start_utc).limit(2)])
|
||||||
|
|
||||||
def _create_post(title, body, pin_hours):
|
def _create_post(title, body, pin_hours):
|
||||||
|
if not g.db.query(Orgy).filter_by(type='file').first():
|
||||||
|
return
|
||||||
|
|
||||||
_delete_all_posts()
|
_delete_all_posts()
|
||||||
|
|
||||||
title += f': {get_names()}'
|
title += f': {get_names()}'
|
||||||
|
|
Loading…
Reference in New Issue