Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/sethoscope/boto into seth…

…oscope-master
  • Loading branch information...
commit 6623cf9ae810af27b027abc6fd6d4fd4e5d2211c 2 parents 6d6c0cc + d71b022
@garnaat garnaat authored
View
5 boto/mturk/connection.py
@@ -604,6 +604,11 @@ def get_qualification_type(self, qualification_type_id):
return self._process_request('GetQualificationType', params,
[('QualificationType', QualificationType),])
+ def get_qualifications_for_qualification_type(self, qualification_type_id):
+ params = {'QualificationTypeId' : qualification_type_id }
+ return self._process_request('GetQualificationsForQualificationType', params,
+ [('QualificationType', QualificationType),])
+
def update_qualification_type(self, qualification_type_id,
description=None,
status=None,
View
3  boto/mturk/notification.py
@@ -85,7 +85,8 @@ def __init__(self, d):
self.event_time_str = d['EventTime']
self.hit_type = d['HITTypeId']
self.hit_id = d['HITId']
- self.assignment_id = d['AssignmentId']
+ if 'AssignmentId' in d: # Not present in all event types
+ self.assignment_id = d['AssignmentId']
#TODO: build self.event_time datetime from string self.event_time_str
View
2  boto/mturk/qualification.py
@@ -55,7 +55,7 @@ def get_as_params(self):
"QualificationTypeId": self.qualification_type_id,
"Comparator": self.comparator,
}
- if self.comparator != 'Exists' and self.integer_value:
+ if self.comparator != 'Exists' and self.integer_value is not None:
params['IntegerValue'] = self.integer_value
if self.required_to_preview:
params['RequiredToPreview'] = "true"
Please sign in to comment.
Something went wrong with that request. Please try again.