From 35dd4e1ef9a6e4acae072cca89e17547da72dbca Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Mon, 16 Apr 2012 10:07:10 -0400 Subject: [PATCH] Fix for cleanup_datasets.py when database_connection is the uncommented default in the config file. --- scripts/cleanup_datasets/cleanup_datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cleanup_datasets/cleanup_datasets.py b/scripts/cleanup_datasets/cleanup_datasets.py index 24e0ed8400c..d9b72554f5f 100644 --- a/scripts/cleanup_datasets/cleanup_datasets.py +++ b/scripts/cleanup_datasets/cleanup_datasets.py @@ -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