Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
b3920ed9
Commit
b3920ed9
authored
Jul 21, 2021
by
carlosribas
Browse files
Bug fix
parent
b3aafd48
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rnacentral/portal/models/rna.py
rnacentral/portal/models/rna.py
+1
-1
No files found.
rnacentral/portal/models/rna.py
View file @
b3920ed9
...
...
@@ -561,7 +561,7 @@ class Rna(CachingMixin, models.Model):
s3_obj
=
s3
.
Object
(
settings
.
S3_SERVER
[
'BUCKET'
],
s3_file
)
try
:
svg
=
zlib
.
decompress
(
s3_obj
.
get
()[
'Body'
].
read
(),
zlib
.
MAX_WBITS
|
32
)
svg
=
svg
.
replace
(
"rgb(255, 0, 0)"
,
"rgb(255,0,255)"
)
svg
=
svg
.
replace
(
b
"rgb(255, 0, 0)"
,
b
"rgb(255,0,255)"
)
except
s3
.
meta
.
client
.
exceptions
.
NoSuchKey
:
svg
=
None
...
...
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