Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Validata
validata-ui
Commits
90536e49
Commit
90536e49
authored
Jun 24, 2019
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tags: use version sorting
parent
6e476a35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
validata_ui/views.py
validata_ui/views.py
+2
-2
No files found.
validata_ui/views.py
View file @
90536e49
...
...
@@ -21,7 +21,7 @@ from commonmark import commonmark
from
flask
import
abort
,
make_response
,
redirect
,
render_template
,
request
,
url_for
from
validata_core
import
messages
from
opendataschema
import
GitSchemaReference
from
opendataschema
import
GitSchemaReference
,
by_semver
from
.
import
app
,
config
,
schema_catalog_map
,
tableschema_from_url
from
.ui_util
import
flash_error
,
flash_warning
...
...
@@ -81,7 +81,7 @@ class SchemaInstance:
'schema_name'
:
self
.
schema_and_section_name
,
'schema_ref'
:
schema_ref
.
name
})))
self
.
tags
=
list
(
schema_reference
.
iter_tags
())
self
.
tags
=
sorted
(
schema_reference
.
iter_tags
()
,
key
=
by_semver
,
reverse
=
True
)
tag_names
=
[
tag
.
name
for
tag
in
self
.
tags
]
self
.
branches
=
[
branch
for
branch
in
schema_reference
.
iter_branches
()
if
branch
.
name
not
in
tag_names
]
...
...
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