From f49e7b9df7c554011f8f7064a18c71a2baeb911b Mon Sep 17 00:00:00 2001 From: Alexander Vyushkov Date: Thu, 5 Jan 2017 14:09:07 -0500 Subject: [PATCH] v0.6.4 --- CHANGELOG.txt | 3 +++ Release Procedure.md | 5 +++++ pyqualtrics/__init__.py | 24 ++++++++++++------------ setup.py | 2 +- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index bd06dba..fc343fb 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,9 @@ 0.7.0 (Planned) [+] Added mock.MockQualtrics object (for unit testing code that uses pyqualtrics.Qualtrics class) +0.6.4 + [*] Fixed bug with getPanel returning None if there are not participants in that panel + 0.6.3 [*] getSurvey return None if using invalid token diff --git a/Release Procedure.md b/Release Procedure.md index 6305d27..be730dc 100644 --- a/Release Procedure.md +++ b/Release Procedure.md @@ -18,8 +18,13 @@ cd .. rm -rf pyqualtrics ``` 6. Run unittests on a different machine + `python setup.py test` + 7. Make a release/tag + https://github.com/Baguage/pyqualtrics/releases -> Draft a new release + Use v0.6.2 format for tag name + 8. Run `setup.py sdist bdist_egg bdist_wininst upload` command \ No newline at end of file diff --git a/pyqualtrics/__init__.py b/pyqualtrics/__init__.py index 6679a67..8fc5c8f 100644 --- a/pyqualtrics/__init__.py +++ b/pyqualtrics/__init__.py @@ -697,18 +697,18 @@ def getPanel(self, LibraryID, PanelID, EmbeddedData=None, LastRecipientID=None, :param Subscribed: If 1 then only subscribed panel members will be returned :return: list of panel member as dictionaries """ - if not self.request("getPanel", - LibraryID=LibraryID, - PanelID=PanelID, - EmbeddedData=EmbeddedData, - LastRecipientID=LastRecipientID, - NumberOfRecords=NumberOfRecords, - ExportLanguage=ExportLanguage, - Unsubscribed=Unsubscribed, - Subscribed=Subscribed, - **kwargs): - return None - return self.json_response + return self.request( + "getPanel", + LibraryID=LibraryID, + PanelID=PanelID, + EmbeddedData=EmbeddedData, + LastRecipientID=LastRecipientID, + NumberOfRecords=NumberOfRecords, + ExportLanguage=ExportLanguage, + Unsubscribed=Unsubscribed, + Subscribed=Subscribed, + **kwargs + ) def importPanel(self, LibraryID, Name, CSV, **kwargs): """ Imports a csv file as a new panel (optionally it can append to a previously made panel) into the database diff --git a/setup.py b/setup.py index 464936a..f2d9082 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup( name="pyqualtrics", - version="0.6.3", + version="0.6.4", author="Alex Vyushkov", author_email="pyqualtrics@gmail.com", description="Unofficial python SDK for Qualtrics API",