1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/3c87cb241165/ changeset: 3c87cb241165 user: natefoo date: 2011-08-18 19:08:39 summary: Decrease disk usage and actually remove datasets (if applicable) when purging a history. affected #: 1 file (167 bytes) --- a/lib/galaxy/web/controllers/history.py Thu Aug 18 11:08:47 2011 -0400 +++ b/lib/galaxy/web/controllers/history.py Thu Aug 18 13:08:39 2011 -0400 @@ -271,9 +271,12 @@ n_deleted += 1 if purge and trans.app.config.allow_user_dataset_purge: for hda in history.datasets: + if trans.user: + trans.user.total_disk_usage -= hda.quota_amount( trans.user ) hda.purged = True trans.sa_session.add( hda ) trans.log_event( "HDA id %s has been purged" % hda.id ) + trans.sa_session.flush() if hda.dataset.user_can_purge: try: hda.dataset.full_delete() @@ -1207,4 +1210,4 @@ def get_item( self, trans, id ): return self.get_history( trans, id ) - \ No newline at end of file + 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.