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
5e9a22b7
Commit
5e9a22b7
authored
Apr 06, 2018
by
Guilhem Saurel
Browse files
branch.updated might still be None
parent
5f1333be
Pipeline
#513
passed with stages
in 56 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
5e9a22b7
...
...
@@ -238,7 +238,7 @@ class Project(Links, NamedModel, TimeStampedModel):
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
:
elif
branch
is
None
or
branch
.
updated
is
None
:
self
.
updated
=
robotpkg
.
updated
else
:
self
.
updated
=
max
(
branch
.
updated
,
robotpkg
.
updated
)
...
...
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