From 7c2d700c43a8520600184e45fbd7394f79aa1952 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Tue, 10 Apr 2012 14:32:13 -0400 Subject: [PATCH] Fix history_contents API adding the HDA to the history twice (resulting in skipped hids) --- lib/galaxy/web/api/history_contents.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/galaxy/web/api/history_contents.py b/lib/galaxy/web/api/history_contents.py index c583e46410d..c19fd737eb9 100644 --- a/lib/galaxy/web/api/history_contents.py +++ b/lib/galaxy/web/api/history_contents.py @@ -95,7 +95,6 @@ class HistoryContentsController( BaseAPIController, UsesHistoryDatasetAssociatio except Exception, e: return str( e ) hda = ld.library_dataset_dataset_association.to_history_dataset_association( history, add_to_history=True ) - history.add_dataset( hda ) trans.sa_session.flush() return hda.get_api_value() else: