Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Validata
validata-ui
Commits
c88a933d
Commit
c88a933d
authored
Jun 13, 2019
by
Pierre Dittgen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just do it
parent
01abe441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
validata_ui/__init__.py
validata_ui/__init__.py
+1
-0
No files found.
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
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