Beispiel #1
0
def index():
    hashcolor = string_to_color(request.remote_addr)
    return render_template('index.html', hash_color=hashcolor)
Beispiel #2
0
def hashit(name):
    hashcolor = string_to_color(name)
    return jsonify(hashcolor=hashcolor)