Skip to content
Snippets Groups Projects
Commit 756b5f2b authored by Magali Ruffier's avatar Magali Ruffier
Browse files

only store key-value pair if it does not already exist

parent f55f4be4
No related branches found
No related tags found
No related merge requests found
......@@ -1009,7 +1009,7 @@ sub store_multiple_mapping_path{
next if $self->{'_mapping_paths'}->{$mapping_key};
# Update the database
$meta->store_key_value('assembly.mapping',$mapping);
$meta->store_key_value('assembly.mapping',$mapping) unless $meta->key_value_exists('assembly.mapping',$mapping);
push @retlist, $mapping;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment