Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix array of list_participants #4

Open
gurkanboll opened this issue Nov 13, 2015 · 3 comments
Open

fix array of list_participants #4

gurkanboll opened this issue Nov 13, 2015 · 3 comments

Comments

@gurkanboll
Copy link

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

@Shnoulle
Copy link

aAttributes=['completed', 'invited', 'reminded', 'usesleft']

We need to allow null to return all attributes i think : but this is a LS feature/bug. : please use Feature request of LS or Forum to discuss.

@gurkanboll
Copy link
Author

Thanks for your reply @Shnoulle , i obviously missunderstod the function despricption earlier, but i can however confirm that aAttributes=['completed', 'invited', 'reminded', 'usesleft'] doesn't work, at least not with aConditions='' maybe im calling that wrong as well.

regarding how to return return all attributes available im probably gonna open a feature request

@Shnoulle
Copy link

When i say aAttributes=['completed', 'invited', 'reminded', 'usesleft'] : send array of. Butb in json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants