Skip to content

Commit

Permalink
Backend code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hujambo-dunia committed Sep 24, 2024
1 parent c5bdd47 commit 09a4eae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/galaxy/managers/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,11 @@ def convert_to_dict_from_many(self, obj, depth=0, max_depth=5):
else:
items = obj.__dict__.items() # Custom object case

return {key: self.convert_to_dict_from_many(value, depth=depth + 1, max_depth=max_depth)
for key, value in items if not key.startswith('_')}
return {
key: self.convert_to_dict_from_many(value, depth=depth + 1, max_depth=max_depth)
for key, value in items
if not key.startswith("_")
}
else:
return obj

Expand Down

0 comments on commit 09a4eae

Please sign in to comment.