Fix for cleanup_datasets.py when database_connection is the uncommented default in the config file.

This commit is contained in:
Nate Coraor
2012-04-16 10:07:10 -04:00
parent 6166c76b6c
commit 35dd4e1ef9
+1 -1
View File
@@ -505,7 +505,7 @@ def _purge_folder( folder, app, remove_from_disk, info_only = False ):
class CleanupDatasetsApplication( object ):
"""Encapsulates the state of a Universe application"""
def __init__( self, config ):
if config.database_connection is None:
if config.database_connection is False:
config.database_connection = "sqlite:///%s?isolation_level=IMMEDIATE" % config.database
self.object_store = build_object_store_from_config( config )
# Setup the database engine and ORM