From 3eb648e904292812c78de8084c6460e07d1c77c8 Mon Sep 17 00:00:00 2001 From: McCloudS Date: Thu, 6 Feb 2025 11:43:17 -0700 Subject: [PATCH] init typo --- subgen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subgen.py b/subgen.py index 1bf2b69..9dfb570 100644 --- a/subgen.py +++ b/subgen.py @@ -1,4 +1,4 @@ -subgen_version = '2025.02.60' +subgen_version = '2025.02.61' from language_code import LanguageCode from datetime import datetime @@ -125,8 +125,8 @@ docker_status = "Docker" if in_docker else "Standalone" class DeduplicatedQueue(queue.Queue): """Queue that prevents duplicates and tracks worker ID.""" - def init(self): - super().init() + def __init__(self): + super().__init__() # Call the superclass's __init__ self._queued = set() self._processing = {} # Store processing tasks by path: {path: worker_id} self._lock = threading.Lock() @@ -134,7 +134,7 @@ class DeduplicatedQueue(queue.Queue): def put(self, item, block=True, timeout=None): with self._lock: path = item["path"] - if path not in self._queued : #and path not in self._processing: # Check against the queue + if path not in self._queued: #and path not in self._processing: # Check against the queue super().put(item, block, timeout) self._queued.add(path)