From d7c67248dce7548fe8077d22ca69a961c5c39e7f Mon Sep 17 00:00:00 2001 From: Joshua Sangmeister Date: Thu, 1 Jul 2021 12:33:40 +0200 Subject: [PATCH] Fix initial data for conference_auto_connect_next_speakers and datavalidator for number fields --- docker/initial-data.json | 2 +- docs/datavalidator/check_json.py | 4 ++-- docs/example-data.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/initial-data.json b/docker/initial-data.json index 5e41638f8..396eaecec 100644 --- a/docker/initial-data.json +++ b/docker/initial-data.json @@ -112,7 +112,7 @@ "conference_stream_poster_url": "", "conference_open_microphone": true, "conference_open_video": true, - "conference_auto_connect_next_speakers": true, + "conference_auto_connect_next_speakers": 0, "projector_countdown_default_time": 60, "projector_countdown_warning_time": 0, diff --git a/docs/datavalidator/check_json.py b/docs/datavalidator/check_json.py index 1c221982d..94addc294 100644 --- a/docs/datavalidator/check_json.py +++ b/docs/datavalidator/check_json.py @@ -50,11 +50,11 @@ def check_color(value: Any) -> bool: def check_number(value: Any) -> bool: - return value is None or isinstance(value, int) + return value is None or type(value) == int def check_float(value: Any) -> bool: - return value is None or isinstance(value, int) or isinstance(value, float) + return value is None or type(value) in (int, float) def check_boolean(value: Any) -> bool: diff --git a/docs/example-data.json b/docs/example-data.json index e1161c37e..d1bc9d0ab 100644 --- a/docs/example-data.json +++ b/docs/example-data.json @@ -248,7 +248,7 @@ "conference_stream_poster_url": "", "conference_open_microphone": true, "conference_open_video": true, - "conference_auto_connect_next_speakers": true, + "conference_auto_connect_next_speakers": 0, "jitsi_room_name": "", "jitsi_domain": "",