Use remote name if present when creating datasets on CKAN harvester

This commit is contained in:
amercader 2013-10-11 16:50:25 +01:00
parent e9dde3f48a
commit 0f5624822c
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ class HarvesterBase(SingletonPlugin):
except NotFound:
# Package needs to be created
# Check if name has not already been used
package_dict['name'] = self._gen_new_name(package_dict['title'])
# Set name if not already there
package_dict.setdefault('name', self._gen_new_name(package_dict['title']))
log.info('Package with GUID %s does not exist, let\'s create it' % harvest_object.guid)
harvest_object.current = True