def add_data(ident): if method.request == 'POST': time = dt.datetime.now() return str(db.update_times(ident, time))
def out_of_line(): if request.method == 'POST': ip = request.remote_addr time = dt.datetime.now() return str(db.update_times(ip, time))