Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bbbmon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bbb
bbbmon
Commits
d19d1d3f
Commit
d19d1d3f
authored
5 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Handle edge case with zero (active) meetings
parent
a2ff79fd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+0
-0
0 additions, 0 deletions
README.md
bbbmon/bbbmon.py
+5
-1
5 additions, 1 deletion
bbbmon/bbbmon.py
with
5 additions
and
1 deletion
README.
rst
→
README.
md
+
0
−
0
View file @
d19d1d3f
File moved
This diff is collapsed.
Click to expand it.
bbbmon/bbbmon.py
+
5
−
1
View file @
d19d1d3f
...
...
@@ -140,7 +140,11 @@ def get_meetings(secret: Secret, bbb_url: Url) -> Iterable[XmlDictConfig]:
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
:
if
len
(
d
[
"
meetings
"
][
"
meeting
"
])
>
0
:
meetings
=
[
d
[
"
meetings
"
][
"
meeting
"
][
0
]]
else
:
print
(
"
There are no active meetings currently.
"
)
exit
()
return
meetings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment