Skip to content

Commit

Permalink
Use item_url and not item-url
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jan 26, 2025
1 parent 239cb33 commit 1e86826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datapackage_pipelines_budgetkey/pipelines/simpledb/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def debug_source(source, debug):

def item_url(kind, fields):
return dict(
name='item-url',
name='item_url',
description='''
קישור לעמוד הפריט באתר מפתח התקציב.
''',
Expand Down Expand Up @@ -1100,7 +1100,7 @@ def convert_request_summary(row):
''',
fields=[
dict(
name='item-url',
name='item_url',
description='''
קישור לעמוד הפריט באתר מפתח התקציב.
''',
Expand Down Expand Up @@ -1208,7 +1208,7 @@ def get_flow(table, params, debug=False):
fields = params['fields']
search = params.get('search')
if search and search.get('field_map'):
search['field_map']['item-url'] = 'item-url'
search['field_map']['item_url'] = 'item-url'
resources = params.get('resources')
steps.append(DF.load(f'{source}/datapackage.json', resources=resources, limit_rows=10000 if debug else None))
steps.append(DF.update_resource(-1, description=description, name=table, search=search))
Expand Down

0 comments on commit 1e86826

Please sign in to comment.