summaryrefslogtreecommitdiff
path: root/task.rb
diff options
context:
space:
mode:
Diffstat (limited to 'task.rb')
-rw-r--r--task.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/task.rb b/task.rb
index 708613e..20dcc68 100644
--- a/task.rb
+++ b/task.rb
@@ -14,8 +14,9 @@ module OpenTox
field :csv, type: String
field :dataset_id, type: BSON::ObjectId
field :model_id, type: BSON::ObjectId
+ field :subTasks, type: Array, default:[]
- attr_accessor :pid, :percent, :predictions, :csv, :dataset_id, :model_id
+ attr_accessor :pid, :percent, :predictions, :csv, :dataset_id, :model_id, :subTasks
def pid
self[:pid]
@@ -41,6 +42,10 @@ module OpenTox
self[:model_id]
end
+ def subTasks
+ self[:subTasks]
+ end
+
def update_percent(percent)
self[:percent] = percent
save