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)
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())
def donate_recurring(): return render_template('donate/recurring_form.html', plans=list_plans(), active_flow='donate')
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)
def donate_recurring(): return render_template('donate/recurring_form.html', plans=list_plans(), active_flow='donate', premiums_config=load_premiums_config())