Skip to content

Commit

Permalink
Fix filetype (always remote) (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte authored May 24, 2019
1 parent 8986b01 commit 0d84ac5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Current (in progress)

- Nothing yet
- Fix filetype (always remote) [#98](https://github.com/opendatateam/udata-ckan/pull/98)

## 1.2.0 (2018-10-02)

Expand Down
1 change: 1 addition & 0 deletions requirements/install.pip
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
udata>=1.6.0
requests==2.21.0
3 changes: 1 addition & 2 deletions udata_ckan/harvesters.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ def process(self, item):
resource.title = res.get('name', '') or ''
resource.description = res.get('description')
resource.url = res['url']
resource.filetype = ('api' if res['resource_type'] == 'api'
else 'remote')
resource.filetype = 'remote'
resource.format = res.get('format')
resource.mime = res.get('mimetype')
resource.hash = res.get('hash')
Expand Down

0 comments on commit 0d84ac5

Please sign in to comment.