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
6da24a77
Commit
6da24a77
authored
Feb 08, 2018
by
Guilhem Saurel
Browse files
fix version getter from tag
parent
6ec0c530
Changes
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
6da24a77
...
...
@@ -225,7 +225,9 @@ class Project(Links, NamedModel, TimeStampedModel):
def
update
(
self
):
self
.
update_tags
()
self
.
version
=
self
.
tag_set
.
filter
(
name__startswith
=
'v'
).
last
().
name
tag
=
self
.
tag_set
.
filter
(
name__startswith
=
'v'
).
last
()
if
tag
is
not
None
:
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
:
...
...
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