galaxy-dist commit 5a5e35e09eab: Add default file_path to cleanup_datasets.py script. Closes #376
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User Kanwei Li <kanwei@gmail.com> # Date 1286475319 14400 # Node ID 5a5e35e09eab477df04549408b56dd7d0ab024b0 # Parent 83227c6bd65cdc2832e04b7823d4ee4f11d20ba7 Add default file_path to cleanup_datasets.py script. Closes #376 --- a/scripts/cleanup_datasets/cleanup_datasets.py +++ b/scripts/cleanup_datasets/cleanup_datasets.py @@ -56,7 +56,7 @@ def main(): database_connection = configuration['database_connection'] else: database_connection = "sqlite:///%s?isolation_level=IMMEDIATE" % configuration["database_file"] - file_path = configuration['file_path'] + file_path = configuration.get('file_path', "database/files") app = CleanupDatasetsApplication( database_connection=database_connection, file_path=file_path ) cutoff_time = datetime.utcnow() - timedelta( days=options.days ) now = strftime( "%Y-%m-%d %H:%M:%S" )
participants (1)
-
commits-noreply@bitbucket.org