mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-12 01:30:47 +01:00
15 lines
343 B
Python
15 lines
343 B
Python
|
from dynaconf import Validator
|
||
|
|
||
|
next_event_validators = [
|
||
|
Validator(
|
||
|
"selection.strategy_options.break_between_events_in_minutes", must_exist=True
|
||
|
)
|
||
|
]
|
||
|
|
||
|
|
||
|
strategy_name_to_validators = {"next_event": next_event_validators}
|
||
|
|
||
|
|
||
|
def get_validators(settings):
|
||
|
return strategy_name_to_validators[settings["selection"]["strategy"]]
|