diff --git a/fb_marketplace/fb_marketplace_product_info.py b/fb_marketplace/fb_marketplace_product_info.py index 86d15d0..492c745 100644 --- a/fb_marketplace/fb_marketplace_product_info.py +++ b/fb_marketplace/fb_marketplace_product_info.py @@ -58,7 +58,7 @@ class FbMarketplaceProductInfo: logging.info("============== {}/{}: Collecting data for {} ==============".format(str(cnt),str(len(results)),result[0])) self.getProductInfo(result) sql = f""" - update {self.config.get('crawler_schema')}.{self.config.get('tracker_tab')} set flag=1 where name='{result[0]}' and price={result[1]} and url='{result[2]}' + update {self.config.get('crawler_schema')}.{self.config.get('tracker_tab')} set flag=1 where url='{result[2]}' """ logging.info("SQL is: {}".format(sql)) self.cur.execute(sql)