mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-06 04:13:27 +01:00
2c8063cf4a
* fixed visualization * simplified tests * split into files * refactored test expected publications * split update tests * expanded specifications and tests * added event_status window tests * fixed 'all' command * renamed everything * fixed uppercase
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"]]
|