Skip to content

fix array of list_participants #4

@gurkanboll

Description

@gurkanboll

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']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions