]> jfr.im git - erebus.git/commitdiff
userinfo - py3 has dict_keys which doesnt support +... ugh
authorzonidjan <redacted>
Fri, 23 Jul 2021 05:35:34 +0000 (00:35 -0500)
committerzonidjan <redacted>
Fri, 23 Jul 2021 05:35:34 +0000 (00:35 -0500)
modules/userinfo.py

index c4281dd65c127d090bd2ebb80b8a4cf39beb0c72..9604b8b1d11cd0e2267128ee52867033acaca6a8 100644 (file)
@@ -60,7 +60,7 @@ def _getauth(thing):
        return None
 
 def keys(user):
-       return list(__builtin__.set(db.get(_getauth(user), {}).keys() + db.get(str(user).lower(), {}).keys())) #list-to-set-to-list to remove duplicates
+       return list(__builtin__.set(list(db.get(_getauth(user), {}).keys()) + list(db.get(str(user).lower(), {}).keys()))) #list-to-set-to-list to remove duplicates
 def has(user, key):
        key = key.lower()
        return (