Commit 62123734 authored by David Huss's avatar David Huss 💬

Handle case if attendees is str

parent 502fbac4
......@@ -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"]]
......
[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>"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment