コード例 #1
0
ファイル: routes.py プロジェクト: abcddt/PyRedisAdmin
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>'
コード例 #2
0
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>'