Exemplo n.º 1
0
Arquivo: db.py Projeto: phiiil/veosan
def get_campaign_form_name(campaign_name):
    if campaign_name:
        return Campaign.query(Campaign.name == campaign_name).get()
    else:
        return None
Exemplo n.º 2
0
Arquivo: db.py Projeto: deltron/veosan
def fetch_campaigns():
    return Campaign.query().order(-Campaign.created_on)
Exemplo n.º 3
0
Arquivo: db.py Projeto: phiiil/veosan
def fetch_campaigns():
    return Campaign.query().order(-Campaign.created_on)
Exemplo n.º 4
0
Arquivo: db.py Projeto: deltron/veosan
def get_campaign_form_name(campaign_name):
    if campaign_name:
        return Campaign.query(Campaign.name == campaign_name).get()
    else:
        return None