Skip to content
GitLab
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
426d52d4
Commit
426d52d4
authored
May 31, 2021
by
Guilhem Saurel
Browse files
dig further in shame
parent
2c4e884e
Pipeline
#14760
failed with stage
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
426d52d4
...
...
@@ -626,7 +626,7 @@ class Repo(TimeStampedModel):
py3
=
'-py3'
in
data
[
'name'
]
debug
=
'-debug'
in
data
[
'name'
]
target
=
next
(
target
for
target
in
Target
.
objects
.
all
()
if
target
.
name
in
data
[
'name'
]).
name
robotpkg
=
data
[
'name'
][
9
:
-
(
2
+
len
(
target
)
+
(
5
if
debug
else
7
)
+
(
3
if
py3
else
0
))]
# shame.
robotpkg
=
data
[
'name'
][
9
:
-
(
3
+
len
(
target
)
+
(
5
if
debug
else
7
)
+
(
3
if
py3
else
0
))]
# shame.
images
=
Image
.
objects
.
filter
(
robotpkg__name
=
robotpkg
,
target__name
=
target
,
debug
=
debug
,
py3
=
py3
)
if
not
images
.
exists
():
continue
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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