commit/galaxy-central: dannon: History Size wasn't filtering out 'purged' datasets in the summary size, should now reflect accurate total on disk.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/62c2a2f9142c/ changeset: 62c2a2f9142c user: dannon date: 2012-02-02 16:17:25 summary: History Size wasn't filtering out 'purged' datasets in the summary size, should now reflect accurate total on disk. affected #: 1 file diff -r 3fdaa5c7d5270564ea55b4c5997dde8c1c00a6e8 -r 62c2a2f9142c11d1ae279ce3af395bd4fb0d4c52 lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -475,6 +475,7 @@ db_session = object_session( self ) rval = db_session.query( func.sum( db_session.query( HistoryDatasetAssociation.dataset_id, Dataset.total_size ).join( Dataset ) .filter( HistoryDatasetAssociation.table.c.history_id == self.id ) + .filter( Dataset.purged != True ) .distinct().subquery().c.total_size ) ).first()[0] if rval is None: rval = 0 Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket