EDUCATOR-3514 increase the length of task_input while creating instance of InstructorTask
This commit is contained in:
@@ -98,8 +98,8 @@ class InstructorTask(models.Model):
|
||||
json_task_input = json.dumps(task_input)
|
||||
|
||||
# check length of task_input, and return an exception if it's too long:
|
||||
if len(json_task_input) > 255:
|
||||
fmt = 'Task input longer than 255: "{input}" for "{task}" of "{course}"'
|
||||
if len(json_task_input) > 265:
|
||||
fmt = 'Task input longer than 265: "{input}" for "{task}" of "{course}"'
|
||||
msg = fmt.format(input=json_task_input, task=task_type, course=course_id)
|
||||
raise ValueError(msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user