f"{uuid} - Change was detected, Has minimum price limit - 'price_change_min' is '{watch.get('price_change_min')}', price from website is '{update_obj['restock'].get('price','')}'.")
f"{uuid} - Change was detected, Has minimum price limit - 'price_change_max' is '{watch.get('price_change_max','')}''price_change_min' is '{watch.get('price_change_min','')}', price from website is '{update_obj['restock'].get('price','')}'.")
ifupdate_obj['restock'].get('price'):
min_limit=float(watch.get('price_change_min'))
price=float(update_obj['restock'].get('price'))
logger.debug(f"{uuid} after float conversion - Min limit: '{min_limit}' Price: '{price}'")
ifprice>min_limit:
changed_detected=False
min_limit=float(watch.get('price_change_min',0))
max_limit=float(watch.get('price_change_max',float('inf')))# Set to infinity if not provided
f"{uuid} - Change was detected, Has maximum price limit - 'price_change_max' is '{watch.get('price_change_max')}', price from website is '{update_obj['restock'].get('price','')}'.")
ifupdate_obj['restock'].get('price'):
max_limit=float(watch.get('price_change_max'))
price=float(update_obj['restock'].get('price'))
logger.debug(f"{uuid} after float conversion - Max limit: '{max_limit}' Price: '{price}'")
ifprice<max_limit:
logger.debug(f"{uuid} after float conversion - Min limit: '{min_limit}' Max limit: '{max_limit}' Price: '{price}'")