Skip to content

Commit

Permalink
Add session attr to Bunch to facilitate app.model.session
Browse files Browse the repository at this point in the history
This Bunch object already has `context`; however we access the session
using both attrs.
  • Loading branch information
jdavcs committed Aug 16, 2023
1 parent fa1b3ab commit 5c6c9ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/tools/remote_tool_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def __init__(
tool_data_table_manager: ToolDataTableManager,
file_sources: ConfiguredFileSources,
):
self.model = Bunch(context=sa_session)
# For backward compatibility we need both context and session attributes that point to sa_session.
self.model = Bunch(context=sa_session, session=sa_session)
self.config = tool_app_config
self.datatypes_registry = datatypes_registry
self.object_store = object_store
Expand Down

0 comments on commit 5c6c9ef

Please sign in to comment.