cornellGrading 2.23.0__tar.gz → 2.24.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cornellgrading-2.23.0/cornellGrading.egg-info → cornellgrading-2.24.0}/PKG-INFO +1 -1
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/__init__.py +1 -1
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/cornellQualtrics.py +27 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0/cornellGrading.egg-info}/PKG-INFO +1 -1
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/LICENSE +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/MANIFEST.in +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/README.md +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/cornellGrading.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/cornellInterface.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/dueDatesFromCSV.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/pandocHTMLParser.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/upload_MC_questions.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading/utils.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading.egg-info/SOURCES.txt +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading.egg-info/dependency_links.txt +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading.egg-info/entry_points.txt +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading.egg-info/requires.txt +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading.egg-info/top_level.txt +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/pyproject.toml +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/scripts/canvastex.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/scripts/matlabgrader.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/scripts/setupSelfGrading.py +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/setup.cfg +0 -0
- {cornellgrading-2.23.0 → cornellgrading-2.24.0}/setup.py +0 -0
|
@@ -1185,6 +1185,33 @@ class cornellQualtrics:
|
|
|
1185
1185
|
|
|
1186
1186
|
return response.json()["result"]["BlockID"]
|
|
1187
1187
|
|
|
1188
|
+
def updateSurveyBlock(self, surveyId, blockId, blockData):
|
|
1189
|
+
"""Add block to existing Survey
|
|
1190
|
+
|
|
1191
|
+
Args:
|
|
1192
|
+
surveyId (str):
|
|
1193
|
+
Survey ID string as returned by getSurveyId
|
|
1194
|
+
blockId (str):
|
|
1195
|
+
Block ID string
|
|
1196
|
+
blockData (dict):
|
|
1197
|
+
Full block definition dictionary
|
|
1198
|
+
|
|
1199
|
+
Returns:
|
|
1200
|
+
dict:
|
|
1201
|
+
response json payload
|
|
1202
|
+
|
|
1203
|
+
..notes::
|
|
1204
|
+
See https://api.qualtrics.com/54c20622ffd25-update-block
|
|
1205
|
+
|
|
1206
|
+
"""
|
|
1207
|
+
baseUrl = "https://{0}{1}survey-definitions/{2}/blocks/{3}".format(
|
|
1208
|
+
self.dataCenter, self.qualtricsapi, surveyId, blockId
|
|
1209
|
+
)
|
|
1210
|
+
|
|
1211
|
+
response = requests.put(baseUrl, json=blockData, headers=self.headers_put)
|
|
1212
|
+
assert response.status_code == 200, "Couldn't update block."
|
|
1213
|
+
|
|
1214
|
+
return response.json()
|
|
1188
1215
|
|
|
1189
1216
|
def getSurveyQuotas(self, surveyId):
|
|
1190
1217
|
"""Get all quotas for a survey
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cornellgrading-2.23.0 → cornellgrading-2.24.0}/cornellGrading.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|