def add(): from data_change import add_value key = request.GET.get('key', None) value = request.GET.get('value', None) type = request.GET.get('type', None) name = request.GET.get('name', None) score = request.GET.get('score', None) cl,cur_server_index,cur_db_index = get_cl() add_value(key,value,name,score,type,cl) return '<script type=text/javascript> alert("ok");window.location.href=document.referrer</script>'
def add(): from data_change import add_value key = request.GET.get('key', None) value = request.GET.get('value', None) type = request.GET.get('type', None) name = request.GET.get('name', None) score = request.GET.get('score', None) cl, cur_server_index, cur_db_index = get_cl() add_value(key, value, name, score, type, cl) return '<script type=text/javascript> alert("ok");window.location.href=document.referrer</script>'