Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bbb
bbbmon
Commits
c348e213
Commit
c348e213
authored
Apr 23, 2020
by
David Huss
💬
Browse files
Handle zero meetings correctly
parent
140a4492
Changes
2
Hide whitespace changes
Inline
Side-by-side
bbbmon/__pycache__/bbbmon.cpython-36.pyc
View file @
c348e213
No preview for this file type
bbbmon/bbbmon.py
View file @
c348e213
...
...
@@ -133,6 +133,10 @@ def get_meetings(secret: Secret, bbb_url: Url) -> Iterable[XmlDictConfig]:
meetings
=
[]
d
=
request_meetings
(
secret
,
bbb_url
)
if
d
[
"meetings"
]
is
None
:
print
(
"There are no active meetings currently."
)
exit
()
if
type
(
d
[
"meetings"
][
"meeting"
])
is
XmlListConfig
:
meetings
=
sorted
([
m
for
m
in
d
[
"meetings"
][
"meeting"
]
if
m
[
"running"
]
==
"true"
],
key
=
lambda
x
:
int
(
x
[
'participantCount'
]),
reverse
=
True
)
elif
type
(
d
[
"meetings"
][
"meeting"
])
is
XmlDictConfig
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment