From 83a2600a70801ed6bd76e89673df30e5cbd2cca9 Mon Sep 17 00:00:00 2001 From: jgoldberg Date: Wed, 26 Aug 2015 20:56:31 -0500 Subject: [PATCH] According to the API docs, POST /question_sets should support the time_limit option http://docs.blockscore.com/v4.0/curl/#create-a-new-question-set --- blockscore/api/question_sets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockscore/api/question_sets.py b/blockscore/api/question_sets.py index d632a66..07a3118 100644 --- a/blockscore/api/question_sets.py +++ b/blockscore/api/question_sets.py @@ -10,9 +10,10 @@ def __init__(self, client): # '/question_sets' POST # # verification_id - - def create(self, person_id, options = {}): + def create(self, person_id, time_limit = 0, options = {}): body = options['body'] if 'body' in options else {} body['person_id'] = person_id + body['time_limit'] = time_limit response = self.client.post(QUESTION_SET_PATH, body) return response @@ -53,4 +54,3 @@ def all(self, count=None, offset=None, options = {}): response = self.client.get(QUESTION_SET_PATH, body) return response -