Remove prints.
This commit is contained in:
parent
eb9aa17862
commit
3e4a9933ce
|
@ -39,6 +39,7 @@ harvest_gather_error_table = None
|
||||||
harvest_object_error_table = None
|
harvest_object_error_table = None
|
||||||
harvest_object_extra_table = None
|
harvest_object_extra_table = None
|
||||||
|
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
|
||||||
if harvest_source_table is None:
|
if harvest_source_table is None:
|
||||||
|
@ -46,13 +47,11 @@ def setup():
|
||||||
log.debug('Harvest tables defined in memory')
|
log.debug('Harvest tables defined in memory')
|
||||||
|
|
||||||
if not model.package_table.exists():
|
if not model.package_table.exists():
|
||||||
print 'harvest model setup: DEFER'
|
|
||||||
log.debug('Harvest table creation deferred')
|
log.debug('Harvest table creation deferred')
|
||||||
return
|
return
|
||||||
|
|
||||||
if not harvest_source_table.exists():
|
if not harvest_source_table.exists():
|
||||||
|
|
||||||
print 'harvest model setup: CREATE'
|
|
||||||
# Create each table individually rather than
|
# Create each table individually rather than
|
||||||
# using metadata.create_all()
|
# using metadata.create_all()
|
||||||
harvest_source_table.create()
|
harvest_source_table.create()
|
||||||
|
@ -65,7 +64,6 @@ def setup():
|
||||||
log.debug('Harvest tables created')
|
log.debug('Harvest tables created')
|
||||||
else:
|
else:
|
||||||
from ckan.model.meta import engine
|
from ckan.model.meta import engine
|
||||||
print 'harvest model setup: NOTHING TO DO'
|
|
||||||
log.debug('Harvest tables already exist')
|
log.debug('Harvest tables already exist')
|
||||||
# Check if existing tables need to be updated
|
# Check if existing tables need to be updated
|
||||||
inspector = Inspector.from_engine(engine)
|
inspector = Inspector.from_engine(engine)
|
||||||
|
|
Loading…
Reference in New Issue