Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
validata-ui
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
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