Pain.Schedule (pain v0.1.0)
Summary
Functions
import Pain.Schedule
check_blocks(
service_demand([ 39928578, 39928780, 39931669, ]),
[ 7733522, 4351609, 8178118, 7733431, 7733550, 7822447, 7832226, ],
this_month())
Pain.Schedule.check_blocks_on_calendars(
"2023-08-28T14:00:00-0400",
[39929015, 39925969, 39928578, 39931669],
[7733522, 4351609, 8178118, 7733431, 7733550, 7822447, 7832226])
import Pain.Schedule
( service_demand([ 39928578, 39928780, 39931669, ])
|> check_blocks(
[ 7733522, 4351609, 8178118, 7733431, 7733550, 7822447, 7832226, ],
this_month()
) |> blocks_by_day()
)["2023-09-30"] |> hour_map()
Functions
Link to this function
addons()
Link to this function
blocks_by_day(blocks)
Link to this function
calendars()
Link to this function
check_blocks(demand, employee_keys, range)
import Pain.Schedule
check_blocks(
service_demand([ 39928578, 39928780, 39931669, ]),
[ 7733522, 4351609, 8178118, 7733431, 7733550, 7822447, 7832226, ],
this_month())
Link to this function
check_blocks_on_calendars(block, service_keys, employee_keys)
Pain.Schedule.check_blocks_on_calendars(
"2023-08-28T14:00:00-0400",
[39929015, 39925969, 39928578, 39931669],
[7733522, 4351609, 8178118, 7733431, 7733550, 7822447, 7832226])
Link to this function
check_calendar_day_service(service, employee_keys, day)
Link to this function
day(phrase)
Link to this function
ending()
Link to this function
hour_map(clocks)
import Pain.Schedule
( service_demand([ 39928578, 39928780, 39931669, ])
|> check_blocks(
[ 7733522, 4351609, 8178118, 7733431, 7733550, 7822447, 7832226, ],
this_month()
) |> blocks_by_day()
)["2023-09-30"] |> hour_map()
Link to this function
log(node)
Link to this function
month(month)
Link to this function
now()
Link to this function
range(day)
Link to this function
reduce_blocks(list)
Link to this function
reduce_calendars(calendars)
Link to this function
service_demand(service_keys)
Link to this function
this_month()
Link to this function