Merge pull request #5917 from FinnStutzenstein/projectorContentObjects
Update projector_countdown
This commit is contained in:
commit
91b9bc6461
@ -51,6 +51,10 @@ def check_number(value: Any) -> bool:
|
|||||||
return value is None or isinstance(value, int)
|
return value is None or isinstance(value, int)
|
||||||
|
|
||||||
|
|
||||||
|
def check_float(value: Any) -> bool:
|
||||||
|
return value is None or isinstance(value, int) or isinstance(value, float)
|
||||||
|
|
||||||
|
|
||||||
def check_boolean(value: Any) -> bool:
|
def check_boolean(value: Any) -> bool:
|
||||||
return value is None or value is False or value is True
|
return value is None or value is False or value is True
|
||||||
|
|
||||||
@ -156,6 +160,8 @@ class Checker:
|
|||||||
checker = check_string
|
checker = check_string
|
||||||
elif field_type in ("number", "timestamp", "relation"):
|
elif field_type in ("number", "timestamp", "relation"):
|
||||||
checker = check_number
|
checker = check_number
|
||||||
|
elif field_type == "float":
|
||||||
|
checker = check_float
|
||||||
elif field_type == "boolean":
|
elif field_type == "boolean":
|
||||||
checker = check_boolean
|
checker = check_boolean
|
||||||
elif field_type in ("string[]", "generic-relation-list"):
|
elif field_type in ("string[]", "generic-relation-list"):
|
||||||
|
@ -2071,11 +2071,21 @@ projector_message:
|
|||||||
|
|
||||||
projector_countdown:
|
projector_countdown:
|
||||||
id: number
|
id: number
|
||||||
title: string
|
title:
|
||||||
description: string
|
type: string
|
||||||
default_time: number
|
required: true
|
||||||
countdown_time: number # float?
|
description:
|
||||||
running: boolean
|
type: string
|
||||||
|
default: ""
|
||||||
|
default_time:
|
||||||
|
type: number
|
||||||
|
default: 60
|
||||||
|
countdown_time:
|
||||||
|
type: float
|
||||||
|
default: 60
|
||||||
|
running:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
projection_ids:
|
projection_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
|
Loading…
Reference in New Issue
Block a user