Fixed typo. Dont start not valid workers
This commit is contained in:
@@ -439,10 +439,11 @@ def main()->None:
|
||||
products = walladb.get_all_products()
|
||||
|
||||
for product in products:
|
||||
logging.info(product)
|
||||
p = threading.Thread(target=Worker.run, args=(product, ))
|
||||
p.start()
|
||||
SEARCH_THREADS_LIST.append((product, p))
|
||||
if helpers.is_valid_request(product):
|
||||
logging.info(product)
|
||||
p = threading.Thread(target=Worker.run, args=(product, ))
|
||||
p.start()
|
||||
SEARCH_THREADS_LIST.append((product, p))
|
||||
|
||||
"""Start the bot."""
|
||||
# Create the Application and pass it your bot's token.
|
||||
|
||||
Reference in New Issue
Block a user