Commit 6ce90229 authored by Marco Sehrer's avatar Marco Sehrer
Browse files

Fix reaction svg hash did not follow schema changes

parent 9099409b
...@@ -94,7 +94,8 @@ module SVG ...@@ -94,7 +94,8 @@ module SVG
def generate_filename def generate_filename
inchikeys = {:starting_materials => @starting_materials, :reactants => @reactants, :products => @products} inchikeys = {:starting_materials => @starting_materials, :reactants => @reactants, :products => @products}
hash_of_inchikeys = Digest::SHA256.hexdigest((inchikeys.values + [@label]).join) key_base = "#{inchikeys.to_a.flatten.join}#{@label}"
hash_of_inchikeys = Digest::SHA256.hexdigest(key_base)
hash_of_inchikeys + '.svg' hash_of_inchikeys + '.svg'
end end
......
Supports Markdown
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