Drop history session workaround from threading work

This was added in 41d3dc62f7 because
history may have been created in another thread. But we don't
do that anymore, so we can drop this.
This commit is contained in:
mvdbeek
2020-10-26 09:37:37 +01:00
parent 38682c8f60
commit b3ace06a60
-3
View File
@@ -252,12 +252,9 @@ class DefaultToolAction:
def _collect_inputs(self, tool, trans, incoming, history, current_user_roles, collection_info):
""" Collect history as well as input datasets and collections. """
app = trans.app
# Set history.
if not history:
history = tool.get_default_history_by_trans(trans, create=True)
if history not in trans.sa_session:
history = trans.sa_session.query(app.model.History).get(history.id)
# Track input dataset collections - but replace with simply lists so collect
# input datasets can process these normally.