ayon-core/server_addon/timers_manager/server/settings.py
Jakub Trllo 3ea4c29d0f use 'SettingsField' from ayon server instead of 'Field' from pydantic
This is preparation for new version of pydantic which will require to customize the field for AYON purposes and raw pydantic Field could not be used.
2024-01-26 12:59:18 +01:00

24 lines
601 B
Python

from ayon_server.settings import BaseSettingsModel, SettingsField
class TimersManagerSettings(BaseSettingsModel):
auto_stop: bool = SettingsField(
True,
title="Auto stop timer",
scope=["studio"],
)
full_time: int = SettingsField(
15,
title="Max idle time",
scope=["studio"],
)
message_time: float = SettingsField(
0.5,
title="When dialog will show",
scope=["studio"],
)
disregard_publishing: bool = SettingsField(
False,
title="Disregard publishing",
scope=["studio"],
)