Skip to content

Commit

Permalink
Remove obsolete get_parentIds_recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT authored Nov 17, 2023
1 parent a97f4d8 commit deb15bc
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions omeroweb/webclient/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,26 +194,6 @@ def validate_redirect_url(url):
return url


def get_parentIds_recursive(obj):
"""
Goes recursively through the object parents list.
Returns a dictionary containing a list of parents Id
per type.
params:
- obj: if not in exisiting_d, add and iterate on parents
"""
d = defaultdict(set)
if obj.OMERO_CLASS == "WellSample":
d["PlateAcquisition"].add(int(obj.getPlateAcquisition().getId()))
obj = obj.getParent() # Jump right away to the Well
d[obj.OMERO_CLASS].add(int(obj.getId()))

for parent in obj.listParents():
for k, v in get_parentIds_recursive(parent).items():
d[k].update(v)
return d


##############################################################################
# custom index page

Expand Down

0 comments on commit deb15bc

Please sign in to comment.