diff --git a/line_counter.py b/line_counter.py index df336c8..d159260 100644 --- a/line_counter.py +++ b/line_counter.py @@ -103,16 +103,15 @@ class SimpleNumberCounter: def increment_number(self, number_type, mode, start, stop, step, unique_id, reset_bool=0): - counter = int(start) if mode == 'integer' else start - if self.counters.__contains__(unique_id): + counter = int(start) if number_type == 'integer' else start + if unique_id in self.counters: counter = self.counters[unique_id] if round(reset_bool) >= 1: counter = start - - if mode == 'increment': + elif mode == 'increment': counter += step - elif mode == 'deccrement': + elif mode == 'decrement': counter -= step elif mode == 'increment_to_stop': counter = counter + step if counter < stop else counter diff --git a/pyproject.toml b/pyproject.toml index 49dbfc1..d2671c8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-line-counter" description = "This custom node package for ComfyUI is designed to streamline your workflow with powerful file-counting capabilities." -version = "1.0.8" +version = "1.0.9" license = {file = "LICENSE"} [project.urls]