MCPcopy
hub / github.com/bugy/script-server / _read_end_args

Function _read_end_args

src/scheduling/schedule_config.py:43–52  ·  view source on GitHub ↗
(incoming_schedule_config)

Source from the content-addressed store, hash-verified

41
42
43def _read_end_args(incoming_schedule_config):
44 end_option = incoming_schedule_config.get('end_option')
45 if end_option == 'end_datetime':
46 end_arg = _read_datetime(incoming_schedule_config, 'end_arg')
47 return end_option,end_arg
48 elif end_option == 'max_executions':
49 end_arg = _read_end_arg_int(incoming_schedule_config)
50 return end_option,end_arg
51 else:
52 return end_option,None
53
54
55def read_repeatable_flag(incoming_schedule_config):

Callers 1

read_schedule_configFunction · 0.85

Calls 3

_read_datetimeFunction · 0.85
_read_end_arg_intFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected