def gen_post_status():

    if not app.config["DEBUG"]:
        post_status = and_(Post.status == PostStatus.PUBLISH)
    else:
        post_status = or_(Post.status == PostStatus.PUBLISH,
                          Post.status == PostStatus.DRAFT)
    return post_status
Return a list of VMs that are on the provider
dataset/ETHPy150Open marteinn/AtomicPress/atomicpress/themes/minimal/helpers.py/gen_post_status--crossover with--dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/profitbricks.py/list_nodes