Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gy4443
chemotion_eln_server
Commits
6ce90229
Commit
6ce90229
authored
Oct 14, 2015
by
Marco Sehrer
Browse files
Fix reaction svg hash did not follow schema changes
parent
9099409b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/svg/reaction_composer.rb
View file @
6ce90229
...
...
@@ -94,7 +94,8 @@ module SVG
def
generate_filename
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'
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment