fix to make import stage work on its own

This commit is contained in:
David Raznick 2011-09-28 14:27:28 +01:00
parent 63afd199a9
commit 31dac7029a
2 changed files with 2 additions and 0 deletions

View File

@ -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()

View File

@ -374,6 +374,7 @@ def import_last_objects(source_id=None):
harvester.force_import = True harvester.force_import = True
harvester.import_stage(obj) harvester.import_stage(obj)
last_obj_guid = obj.guid last_obj_guid = obj.guid
return imported_objects return imported_objects