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
Validata
Validata UI
Commits
c88a933d
Commit
c88a933d
authored
Jun 13, 2019
by
Pierre Dittgen
Browse files
Just do it
parent
01abe441
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_ui/__init__.py
View file @
c88a933d
...
...
@@ -28,6 +28,7 @@ def schema_from_url(url):
# load config.json and catalog_schema_toml
ui_config
=
json
.
load
(
config
.
UI_CONFIG_FILE
.
open
(
'rt'
,
encoding
=
'utf-8'
))
if
config
.
UI_CONFIG_FILE
else
[]
# super ugly way to access catalog_toml url
# TODO: improve it
schema_catalog_url
=
ui_config
[
'sections'
][
0
][
'catalog'
]
table_schema_catalog
=
opendataschema
.
TableSchemaCatalog
(
schema_catalog_url
,
download_func
=
download_with_cache
)
...
...
Write
Preview
Supports
Markdown
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