mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user