mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Remove unnecessary tasks hash from full export [SCI-5840]
This commit is contained in:
parent
c4e6b0bbaf
commit
b2e2186d9f
1 changed files with 0 additions and 2 deletions
|
|
@ -97,14 +97,12 @@ class Report < ApplicationRecord
|
||||||
def self.generate_whole_project_report(project, current_user, current_team)
|
def self.generate_whole_project_report(project, current_user, current_team)
|
||||||
content = {
|
content = {
|
||||||
'experiments' => [],
|
'experiments' => [],
|
||||||
'tasks' => {},
|
|
||||||
'repositories' => project.assigned_repositories_and_snapshots.pluck(:id)
|
'repositories' => project.assigned_repositories_and_snapshots.pluck(:id)
|
||||||
}
|
}
|
||||||
project.experiments.includes(:my_modules).each do |experiment|
|
project.experiments.includes(:my_modules).each do |experiment|
|
||||||
content['experiments'].push(
|
content['experiments'].push(
|
||||||
{ id: experiment.id, my_module_ids: experiment.my_module_ids }
|
{ id: experiment.id, my_module_ids: experiment.my_module_ids }
|
||||||
)
|
)
|
||||||
content['tasks'][experiment.id] = experiment.my_modules.pluck(:id)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
report = Report.new
|
report = Report.new
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue