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