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'):
ifupdate_obj['restock'].get('price'):
min_limit=float(watch.get('price_change_min'))
min_limit=float(watch.get('price_change_min',0))
price=float(update_obj['restock'].get('price'))
max_limit=float(watch.get('price_change_max',float('inf')))# Set to infinity if not provided
logger.debug(f"{uuid} after float conversion - Min limit: '{min_limit}' Price: '{price}'")
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'))
price=float(update_obj['restock'].get('price'))
logger.debug(f"{uuid} after float conversion - Max limit: '{max_limit}' Price: '{price}'")
logger.debug(f"{uuid} after float conversion - Min limit: '{min_limit}' Max limit: '{max_limit}' Price: '{price}'")