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

Fix bug with json output

parent 68bb94d1
Branches
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ def main(userconfig, watch, version): ...@@ -54,7 +54,7 @@ def main(userconfig, watch, version):
Internally bbbmon relies on the offical bbb-API, which means you need to have the server's secret in order to create a valid request. Create a new configuration with: bbbmon config --new Internally bbbmon relies on the offical bbb-API, which means you need to have the server's secret in order to create a valid request. Create a new configuration with: bbbmon config --new
""" """
__version__ = "0.1.32" __version__ = "0.1.33"
if version: if version:
print(__version__) print(__version__)
......
...@@ -405,6 +405,8 @@ def format_json(config: Config, watch: bool, compact: bool) -> str: ...@@ -405,6 +405,8 @@ def format_json(config: Config, watch: bool, compact: bool) -> str:
for e, meeting in [(e, get_meetings(e.secret, e.url, config.path, sum_=False)) for e in config.endpoints]: for e, meeting in [(e, get_meetings(e.secret, e.url, config.path, sum_=False)) for e in config.endpoints]:
if meeting == ["unreachable"]: if meeting == ["unreachable"]:
meeting = [{"unreachable" : "true"}] meeting = [{"unreachable" : "true"}]
elif len(meeting) == 0:
pass
else: else:
meeting[0]["unreachable"] = "false" meeting[0]["unreachable"] = "false"
......
[tool.poetry] [tool.poetry]
name = "bbbmon" name = "bbbmon"
version = "0.1.32" version = "0.1.33"
description = "A small CLI utility to monitor bbb usage" description = "A small CLI utility to monitor bbb usage"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"] authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
maintainers = ["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