Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jan 20, 2025
1 parent 34f17b2 commit 934213f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app_runner/src/app_runner/bfabric_app/submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_workunit_wrapper_data(self) -> WorkunitWrapperData:
# executables = Executable.find_by({"workunitid": self._workunit.id,
# "context": "WORKUNIT"}, client=self._client)
executables = Executable.find_by({"workunitid": self._workunit}, client=self._client)
executables = {key: value for key, value in executables if value["context"] == "WORKUNIT"}
executables = {key: value for key, value in executables.items() if value["context"] == "WORKUNIT"}
if len(executables) != 1:
msg = f"Expected exactly one WORKUNIT executable, found executables: {sorted(executables.keys())}"
raise ValueError(msg)
Expand Down

0 comments on commit 934213f

Please sign in to comment.