fix to make import stage work on its own
This commit is contained in:
parent
63afd199a9
commit
31dac7029a
|
@ -93,6 +93,7 @@ class Harvester(CkanCommand):
|
||||||
elif cmd == 'initdb':
|
elif cmd == 'initdb':
|
||||||
self.initdb()
|
self.initdb()
|
||||||
elif cmd == 'import':
|
elif cmd == 'import':
|
||||||
|
self.initdb()
|
||||||
self.import_stage()
|
self.import_stage()
|
||||||
elif cmd == 'job-all':
|
elif cmd == 'job-all':
|
||||||
self.create_harvest_job_all()
|
self.create_harvest_job_all()
|
||||||
|
|
|
@ -375,6 +375,7 @@ def import_last_objects(source_id=None):
|
||||||
harvester.import_stage(obj)
|
harvester.import_stage(obj)
|
||||||
last_obj_guid = obj.guid
|
last_obj_guid = obj.guid
|
||||||
|
|
||||||
|
|
||||||
return imported_objects
|
return imported_objects
|
||||||
|
|
||||||
def create_harvest_job_all():
|
def create_harvest_job_all():
|
||||||
|
|
Loading…
Reference in New Issue