Skip to content

Commit

Permalink
Fix before_update
Browse files Browse the repository at this point in the history
2024-09-10 08:47:13,149 INFO  [ckanext.schemingdcat.harvesters.xls] Dataset dates - Harvest 
date: 2024-09-10 and Previous date: 2024-08-27 00:00:00
Traceback (most recent call last):
  File "/usr/bin/ckan", line 8, in <module>
    sys.exit(ckan())
  File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/srv/app/src/ckanext-harvest/ckanext/harvest/cli.py", line 249, in fetch_consumer
    utils.fetch_consumer()
  File "/srv/app/src/ckanext-harvest/ckanext/harvest/utils.py", line 345, in fetch_consumer
    fetch_callback(consumer, method, header, body)
  File "/srv/app/src/ckanext-harvest/ckanext/harvest/queue.py", line 497, in fetch_callback
    fetch_and_import_stages(harvester, obj)
  File "/srv/app/src/ckanext-harvest/ckanext/harvest/queue.py", line 515, in fetch_and_impor
t_stages
    success_import = harvester.import_stage(obj)
  File "/srv/app/src/ckanext-schemingdcat/ckanext/schemingdcat/harvesters/xls.py", line 1113
, in import_stage
    err = harvester.before_update(harvest_object, package_dict, harvester_tmp_dict)
TypeError: before_update() missing 1 required positional argument: 'harvester_tmp_dict'
  • Loading branch information
mjanez authored Sep 10, 2024
1 parent 43cc8b0 commit c347255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/schemingdcat/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def before_update(self, harvest_object, package_dict, harvester_tmp_dict):
temp data. Such dict will be passed back in the
``after_update`` call.
"""
pass
return None

def after_update(self, harvest_object, package_dict, harvester_tmp_dict):
"""
Expand Down

0 comments on commit c347255

Please sign in to comment.