-
Notifications
You must be signed in to change notification settings - Fork 7
Description
The list_participants function should return 'completed', 'invited', 'reminded', 'usesleft' but it doesn't, aConditions is probably defined wrong in (i know that in limesurvey.py it is defined as array(), but array() is not defined in python), maybe @Shnoulle knows how to properly call the function
def list_participants(self, sid, iStart=0, iLimit=1000000, bUnused='true', aAttributes='true', aConditions=['completed', 'invited', 'reminded', 'usesleft']):
data = """ { "id" : 1,
"method":"list_participants",
"params": { "sSessionKey": "%s",
"iSurveyID": %s,
"iStart": %s,
"iLimit": %s,
"bUnused": "%s",
"aAttributes": "%s",
"aConditions": "%s"
} } """ % (self.session_key, sid, iStart, iLimit, bUnused, aAttributes, aConditions)
return self._getJSON(data)['result']