Skip to main content

task_id_in

Return true if task id is member of set ids'.

def task_id_in(
ids: set,
body: dict,
message: string
) - > boolean

Return true if task id is member of set ids'.

Parameters

NameTypeDescription
idssetA collection of valid task identifiers to check against
bodydictThe request or data dictionary containing the 'id' key to be validated
messagestringAn auxiliary message string, currently unused by the function logic

Returns

TypeDescription
booleanTrue if the 'id' key in the body dictionary exists within the provided set of IDs, False otherwise