Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
bbb
bbbmon
Commits
0801d27f
Commit
0801d27f
authored
May 28, 2020
by
David Huss
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix json output (add endpoints)
parent
78e0726d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
bbbmon/meetings.py
bbbmon/meetings.py
+16
-1
No files found.
bbbmon/meetings.py
View file @
0801d27f
...
...
@@ -358,7 +358,22 @@ def meetings_twolines(config: Config, watch: int, fancy: bool, sum_:bool):
def
format_json
(
config
:
Config
,
watch
:
bool
,
compact
:
bool
)
->
str
:
meetings
=
[
get_meetings
(
e
.
secret
,
e
.
url
,
config
.
path
,
sum_
=
False
)
for
e
in
config
.
endpoints
]
meetings
=
[]
for
e
,
meeting
in
[(
e
,
get_meetings
(
e
.
secret
,
e
.
url
,
config
.
path
,
sum_
=
False
))
for
e
in
config
.
endpoints
]:
# metting = [m for m in ]
if
meeting
==
[
"unreachable"
]:
meeting
=
[{
"unreachable"
:
"true"
}]
else
:
meeting
[
0
][
"unreachable"
]
=
"false"
for
m
in
meeting
:
m
[
"endpoint"
]
=
e
.
name
meetings
.
append
(
meeting
)
# Clear screen after request is done, and before printing new data to keep
# blinking to a minimum
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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