File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -305,18 +305,18 @@ def check_pdf_files
305
305
add_note ( 'The effective publication includes the SeqCode accession' )
306
306
end
307
307
names . each do |n |
308
- Check . find_or_create_by (
309
- name : n , kind : :effective_publication_missing_accession , pass : has_acc
310
- )
308
+ Check . create_with ( pass : has_acc ) . find_or_create_by (
309
+ name : n , kind : :effective_publication_missing_accession
310
+ ) . update ( pass : has_acc )
311
311
end
312
312
313
313
if inames . values . all?
314
314
add_note ( 'The effective publication mentions all names in the list' )
315
315
end
316
316
inames . each do |n , v |
317
- Check . find_or_create_by (
318
- name : n , kind : :name_missing_in_effective_publication , pass : v
319
- )
317
+ Check . create_with ( pass : v ) . find_or_create_by (
318
+ name : n , kind : :name_missing_in_effective_publication
319
+ ) . update ( pass : v )
320
320
end
321
321
322
322
has_acc && inames . values . all?
You can’t perform that action at this time.
0 commit comments