mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
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.
24 lines
601 B
Python
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"],
|
|
)
|