def confirm_connection(message): last_click,_ = get_last_click_and_clicker() emit('server confirmation',{'last':last_click})
def index(page=1): form = ClickForm() last_click, last_clicker = get_last_click_and_clicker() delta = datetime.utcnow() - last_click leaders = get_leaders(page) return render_template('index.html', **locals())