diff --git a/pyweb/flaskcvp.py b/pyweb/flaskcvp.py index d23fc65..f66f935 100644 --- a/pyweb/flaskcvp.py +++ b/pyweb/flaskcvp.py @@ -76,7 +76,10 @@ app.debug = options.debug def getUser(user): - return dict(user) + fields = ["channel", "deaf", "mute", "name", "selfDeaf", "selfMute", + "session", "suppress", "userid", "idlesecs", "recording", "comment", + "prioritySpeaker"] + return dict(zip(fields, [getattr(user, field) for field in fields])) def getChannel(channel): fields = ["id", "name", "parent", "links", "description", "temporary", "position"]