Esempio n. 1
0
def missioncontrol_index():
    cutoff = datetime.datetime.utcnow() - datetime.timedelta(hours=12)
    orders = Order.query.\
        filter(Order.placed_date > cutoff).\
        order_by(db.desc(Order.id)).limit(app.config['ARTISTS_PER_PAGE'])
    return render_template('donate/missioncontrol/index.html',
                           plans=list_plans(),
                           orders=orders)
Esempio n. 2
0
def missioncontrol_index():
    cutoff = datetime.datetime.utcnow() - datetime.timedelta(hours=12)
    orders = Order.query.\
        filter(Order.placed_date > cutoff).\
        order_by(db.desc(Order.id)).limit(app.config['ARTISTS_PER_PAGE'])
    return render_template('donate/missioncontrol/index.html',
                           plans=list_plans(), orders=orders,
                           premiums_config=load_premiums_config())
Esempio n. 3
0
def donate_recurring():
    return render_template('donate/recurring_form.html',
                           plans=list_plans(),
                           active_flow='donate')
Esempio n. 4
0
def missioncontrol_index():
    orders = Order.query.order_by(db.desc(Order.id)).limit(app.config['ARTISTS_PER_PAGE'])
    return render_template('donate/missioncontrol/index.html',
                           plans=list_plans(), orders=orders)
Esempio n. 5
0
def donate_recurring():
    return render_template('donate/recurring_form.html', plans=list_plans(),
                           active_flow='donate',
                           premiums_config=load_premiums_config())
Esempio n. 6
0
def donate_recurring():
    return render_template('donate/recurring_form.html',
                           plans=list_plans(),
                           active_flow='donate',
                           premiums_config=load_premiums_config())