Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
1bd5bde0
Commit
1bd5bde0
authored
Jul 29, 2021
by
Guilhem Saurel
Browse files
doc_coverage_image: select py- if available
parent
02728e5c
Pipeline
#15402
passed with stage
in 4 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
1bd5bde0
...
...
@@ -425,7 +425,11 @@ class Project(Links, NamedModel, TimeStampedModel):
return
settings
.
PUBLIC_REGISTRY
if
self
.
public
else
settings
.
PRIVATE_REGISTRY
def
doc_coverage_image
(
self
):
return
Image
.
objects
.
get
(
robotpkg__project
=
self
,
target__main
=
True
)
images
=
Image
.
objects
.
filter
(
robotpkg__project
=
self
,
target__main
=
True
)
if
images
.
count
()
==
1
:
return
images
.
first
()
if
images
.
count
()
==
2
:
return
next
(
image
for
image
in
images
if
image
.
robotpkg
.
name
.
startswith
(
'py-'
))
def
print_deps
(
self
):
return
mark_safe
(
', '
.
join
(
d
.
library
.
get_link
()
for
d
in
self
.
dependencies
.
all
()))
...
...
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