Permalink
Browse files

Fix typo erring the dataset names

  • Loading branch information...
akariv committed May 9, 2018
1 parent 4c970f8 commit ee2ef3c73bb26e8600206df87481d335a0351056
Showing with 2 additions and 5 deletions.
  1. +2 −5 conductor/blueprints/package/controllers.py
@@ -124,7 +124,7 @@ def upload(datapackage, token, cache_get, cache_set):
if r.descriptor.get('encoding') is not None:
source['encoding'] = r.descriptor.get('encoding')
fiscal_spec = {
'dataset-name:': desc['name'],
'dataset-name': desc['name'],
'resource-name': r.name,
'title': desc.get('title', desc['name']),
'datapackage-url': datapackage,
@@ -139,10 +139,7 @@ def upload(datapackage, token, cache_get, cache_set):
if 'osType' in f
]
}
package_id = '{0}:{1}'.format(token['userid'],
slugify(fiscal_spec['title'],
separator='-',
to_lower=True))
package_id = '{0}:{1}'.format(token['userid'], fiscal_spec['dataset-name'])

This comment has been minimized.

Show comment
Hide comment
@liyakun

liyakun May 9, 2018

Contributor

hi @akariv , don't know have you deploy the newest commit, however, i got upload status pending while uploading a file with id '10th_test', but it works for id '9th-test'. I am not clear whether it is influenced by this change, could you have a look? Thanks.

@liyakun

liyakun May 9, 2018

Contributor

hi @akariv , don't know have you deploy the newest commit, however, i got upload status pending while uploading a file with id '10th_test', but it works for id '9th-test'. I am not clear whether it is influenced by this change, could you have a look? Thanks.

on_upload_complete_callback = \
make_upload_complete_callback(package_id, encoded_token)
status_cb = StatusCallback(datapackage, cache_get, cache_set,

0 comments on commit ee2ef3c

Please sign in to comment.