Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
maubot
tex
Commits
594f11c5
Commit
594f11c5
authored
Apr 07, 2020
by
David Vo
Committed by
Tulir Asokan
Apr 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing thumbnail info mimetype
parent
e0df05c3
Pipeline
#870
passed with stage
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tex.py
tex.py
+1
-0
No files found.
tex.py
View file @
594f11c5
...
...
@@ -90,6 +90,7 @@ class TexBot(Plugin):
data
=
output
.
getvalue
()
info
.
thumbnail_url
=
await
self
.
client
.
upload_media
(
data
,
"image/png"
,
"tex.thumb.png"
)
info
.
thumbnail_info
.
mimetype
=
"image/png"
info
.
thumbnail_info
.
size
=
len
(
data
)
plot
.
close
(
fig
)
...
...
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