Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Feb 9, 2015
1 parent e15cf47 commit e98b2d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ckanext-ytp-main/ckanext/ytp/dataset/plugin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ckan import plugins, model, logic
from ckan.plugins import toolkit
from ckan.lib.navl.dictization_functions import Missing, StopOnError, missing
from ckan.lib.navl.dictization_functions import Missing, StopOnError, missing, flatten_dict, unflatten
from ckan.lib import helpers
from ckan.common import _, c, request

Expand Down Expand Up @@ -546,9 +546,9 @@ def get_package_dict(self, context, data_dict):
continue

package_dict['content_type'] = value
flattened = dictization_functions.flatten_dict(package_dict)
flattened = flatten_dict(package_dict)
convert_to_tags_string('content_type')(('content_type',), flattened, {}, context)
package_dict = dictization_functions.unflatten(flattened)
package_dict = unflatten(flattened)

if extra['key'] == 'licence':
value = json.loads(extra['value'])
Expand Down

0 comments on commit e98b2d7

Please sign in to comment.