Commits

Kenneth Love committed f78b26a

added check for sets

Comments (0)

Files changed (1)

 def key(key):
     if r.type(key) == 'hash':
         output = r.hgetall(key)
+    elif r.type(key) == 'set':
+        output = r.smembers(key)
     else:
         output = r.get(key)
     return render_template('key.html', key=key, output=output)