Updated Time Conditions (autotransform.step.condition.updated)¶
The implementation for all conditions handling when a Change was updated.
- class autotransform.step.condition.updated.UpdatedAgoCondition(*, comparison: ComparisonType, value: Union[int, List[int]])¶
Bases:
SortableComparisonCondition
[int
]A condition which checks how long ago a Change was updated against the supplied time, all in seconds, using the supplied comparison.
- comparison¶
The type of comparison to perform.
- Type:
- value¶
The number of seconds to compare against.
- Type:
int | List[int]
- name¶
The name of the Component.
- Type:
ClassVar[ConditionName]
- comparison: ComparisonType¶
- get_val_from_change(change: Change) int ¶
Gets how long ago the Change was updated.
- Parameters:
change (Change) – The Change the Condition is checking.
- Returns:
How long ago the Change was updated.
- Return type:
int
- name: ClassVar[ConditionName] = 'updated_ago'¶
- value: Union[int, List[int]]¶