Commit bdfcfdce authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Merge branch '83_filter_schemas' into 'frictionless_scratch'

Filtrer les schémas sur la page d'accueil

See merge request !9
parents 6509c33d d6d56ac7
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
## next ## next
- display only tableschema (using new `schema_type` property)
- move most of dependency from requirements.in to setup.py - move most of dependency from requirements.in to setup.py
## 0.4.0a21 ## 0.4.0a21
......
...@@ -536,6 +536,9 @@ def home(): ...@@ -536,6 +536,9 @@ def home():
# Working on catalog # Working on catalog
schema_info_list = [] schema_info_list = []
for schema_reference in schema_catalog.references: for schema_reference in schema_catalog.references:
# retain tableschema only
if schema_reference.get_schema_type() != "tableschema":
continue
# Loads default table schema for each schema reference # Loads default table schema for each schema reference
schema_info = {"name": schema_reference.name} schema_info = {"name": schema_reference.name}
try: try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment