Skip to content
Snippets Groups Projects
Commit 62123734 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Handle case if attendees is str

parent 502fbac4
Branches
Tags
No related merge requests found
......@@ -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>"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment