Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 777c475

Browse files
osodem4reko
authored andcommitted
Add get_recording method
1 parent 706aca7 commit 777c475

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/glasses3/recordings/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def children(self) -> List[Recording]:
157157
"""This property is not recommended for use since the object itself has functionality of a list. See `__iter__` and `__getitem__` methods."""
158158
return list(reversed(self._children.values()))
159159

160+
def get_recording(self, uuid: str) -> Recording:
161+
return self._children[uuid]
162+
160163
def __iter__(self) -> Iterable[Recording]:
161164
yield from reversed(self._children.values())
162165

0 commit comments

Comments
 (0)