1. Kenneth Love
  2. Redbeard

Commits

Kenneth Love  committed f78b26a

added check for sets

  • Participants
  • Parent commits 37d85cc
  • Branches default

Comments (0)

Files changed (1)

File redbeard.py

View file
 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)