diff --git a/bbbmon/meetings.py b/bbbmon/meetings.py index 0dc7413e90908141ecfc44a3a2378f30fde3a408..b5139e9a3d521e8ce95333cc648c3e0bbba6a095 100644 --- a/bbbmon/meetings.py +++ b/bbbmon/meetings.py @@ -90,7 +90,9 @@ def get_presenter(meeting: XmlDictConfig) -> Optional[XmlDictConfig]: Get the presenter of a meeting (return None if there is none) """ presenters = [] - if type(meeting["attendees"]["attendee"]) is XmlListConfig: + if type(meeting["attendees"]) is str: + presenters = [meeting["attendees"]] + elif type(meeting["attendees"]["attendee"]) is XmlListConfig: presenters = [a for a in meeting["attendees"]["attendee"] if a["isPresenter"] == "true"] elif type(meeting["attendees"]["attendee"]) is XmlDictConfig: presenters = [meeting["attendees"]["attendee"]] diff --git a/pyproject.toml b/pyproject.toml index 8f431a3c593916a282bc7e941c11d9db4072eacf..c3c5fb089888c30a637e5962503f80e82b8d2f5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bbbmon" -version = "0.1.23" +version = "0.1.24" description = "A small CLI utility to monitor bbb usage" authors = ["David Huss <david.huss@hfbk-hamburg.de>"] maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"]