mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 07:33:04 +08:00
Codestyle fixes
This commit is contained in:
parent
9391eea6df
commit
0e0228cb8c
2 changed files with 8 additions and 2 deletions
|
@ -255,7 +255,12 @@ class Organization < ActiveRecord::Base
|
||||||
def calculate_space_taken
|
def calculate_space_taken
|
||||||
st = 0
|
st = 0
|
||||||
projects.includes(
|
projects.includes(
|
||||||
experiments: { my_modules: { protocols: { steps: :assets }, results: { result_asset: :asset } } }
|
experiments: {
|
||||||
|
my_modules: {
|
||||||
|
protocols: { steps: :assets },
|
||||||
|
results: { result_asset: :asset }
|
||||||
|
}
|
||||||
|
}
|
||||||
).find_each do |project|
|
).find_each do |project|
|
||||||
project.project_my_modules.find_each do |my_module|
|
project.project_my_modules.find_each do |my_module|
|
||||||
my_module.protocol.steps.find_each do |step|
|
my_module.protocol.steps.find_each do |step|
|
||||||
|
|
|
@ -537,7 +537,8 @@ module FirstTimeDataGenerator
|
||||||
generate_result_comment(
|
generate_result_comment(
|
||||||
temp_result,
|
temp_result,
|
||||||
user,
|
user,
|
||||||
'PVY NTN 6dpi isolation seems to have failed, please repeat nanodrop measurement.'
|
'PVY NTN 6dpi isolation seems to have failed, ' \
|
||||||
|
'please repeat nanodrop measurement.'
|
||||||
)
|
)
|
||||||
temp_result.table = Table.new(
|
temp_result.table = Table.new(
|
||||||
created_by: user,
|
created_by: user,
|
||||||
|
|
Loading…
Reference in a new issue