Commits

Kenneth Love committed ca8d743

added keytype to output on key page

Comments (0)

Files changed (2)

         output = r.zrange(key, 0, -1, withscores=True)
     else:
         output = r.get(key)
-    return render_template('key.html', key=key, output=output)
+    return render_template('key.html', rtype=rtype, key=key, output=output)
 
 @app.route('/key/save/<key>', methods=['POST'])
 def save(key):

templates/key.html

 		{% endif %}
 	{% endwith %}
 	<h1>{{ key }}</h1>
+	<h2>{{ rtype }}</h2>
 	<form action="{{ url_for('save', key=key) }}" method="post">
 		<textarea name="value" cols="80" rows="20">{{ output }}</textarea>
 		<br>