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
5f1333be
Commit
5f1333be
authored
Apr 06, 2018
by
Guilhem Saurel
Browse files
branch.updated might be None
parent
f326935d
Pipeline
#511
passed with stages
in 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
5f1333be
...
...
@@ -235,7 +235,7 @@ class Project(Links, NamedModel, TimeStampedModel):
self
.
version
=
tag
.
name
[
1
:]
robotpkg
=
self
.
robotpkg_set
.
order_by
(
'-updated'
).
first
()
branch
=
self
.
branch_set
.
order_by
(
'-updated'
).
first
()
if
branch
is
not
None
or
robotpkg
is
not
None
:
if
(
branch
is
not
None
and
branch
.
updated
is
not
None
)
or
robotpkg
is
not
None
:
if
robotpkg
is
None
:
self
.
updated
=
branch
.
updated
elif
branch
is
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