예제 #1
0
파일: app.py 프로젝트: volker48/hashcolor
def index():
    hashcolor = string_to_color(request.remote_addr)
    return render_template('index.html', hash_color=hashcolor)
예제 #2
0
파일: app.py 프로젝트: volker48/hashcolor
def hashit(name):
    hashcolor = string_to_color(name)
    return jsonify(hashcolor=hashcolor)