Fixed typo. Dont start not valid workers

This commit is contained in:
Joan
2023-07-04 15:09:56 +02:00
parent 3dfc7c6358
commit ab68730aab
3 changed files with 17 additions and 17 deletions

View File

@@ -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.