Merge pull request #6141 from jsangmeister/fix-number-fields
Fix initial data for conference_auto_connect_next_speakers and datavalidator for number fields
This commit is contained in:
commit
fb9e9513fc
@ -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,
|
||||
|
@ -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:
|
||||
|
@ -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": "",
|
||||
|
Loading…
Reference in New Issue
Block a user