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 Oct 22, 2024
1 parent 58e8b2d commit 2b5f1ac
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 @@ -919,8 +919,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 2b5f1ac

Please sign in to comment.