def returns(): check_db.returns('yoox') data = db.items.find({'timestamp':check_db.timestamp(), 'update':'return'}) return render_template('home2.html', data=data)
def returns_2(): check_db.returns('yoox', end=2) data = db.items.find({'timestamp':check_db.timestamp(), 'update':'return'})
def showDrops(): data = db.items.find({'timestamp': check_db.timestamp(), 'update':'drop'}).sort('current_price',1) return render_template('home2.html',data=data)
def show_promo(): data = db.items.find({'timestamp':check_db.timestamp(), 'update':'promo'}).sort('_id') return render_template('home2.html',data=data)
def promo(): check_db.promotions('yoox') data = db.items.find({'timestamp':check_db.timestamp(), 'update':'promo'}).sort('current_price',1) return render_template('home2.html',data=data)
def drops_4(): check_db.price_drops(quartile=4) data = db.items.find({'timestamp':check_db.timestamp(), 'update':'drop'}) return render_template('home2.html',data=data)
def new(): check_db.new_items('yoox') data = db.items.find({'timestamp':check_db.timestamp(),'update':'new'}) return render_template('home2.html', data=data)