Skip to content

Commit

Permalink
Filter out original files (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rflprr authored Jun 2, 2017
1 parent d86c667 commit 10fa20a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datadotworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from datadotworld.config import FileConfig, ChainedConfig
from datadotworld.datadotworld import DataDotWorld

__version__ = '1.2.2'
__version__ = '1.2.3'

# Convenience top-level functions

Expand Down
3 changes: 2 additions & 1 deletion datadotworld/models/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def __init__(self, descriptor_file):
for r in self._datapackage.resources}
self.__tabular_resources = {k: sanitize_resource_schema(r)
for (k, r) in self.__resources.items()
if type(r) is TabularResource}
if type(r) is TabularResource and
r.descriptor['path'].startswith('data')}
self.__invalid_schemas = [] # Resource names with invalid schemas

# All formats
Expand Down

0 comments on commit 10fa20a

Please sign in to comment.