def hello_y(): bd = BD("visitors") if session == {}: session['id'] = bd.get_next_id() bd.set_visit(session['id'], get_date()) count = bd.get_year(session['id'], get_date()) return "Your visits is {}.\n".format(count)
def hello_I(): bd = BD("visitors") if session == {}: session['id'] = bd.get_next_id() bd.set_visit(session['id'], get_date()) return send_file('p.png')