diff --git a/scripts/get_inc_data.py b/scripts/get_inc_data.py index 2055598..cdd63bd 100644 --- a/scripts/get_inc_data.py +++ b/scripts/get_inc_data.py @@ -162,13 +162,13 @@ def get_inc_gamelist() -> list: # 判断是否打折,修改cuttime数值 mm_cutOff = m_cutOff.get('cutOff') mprice = m_cutOff.get('price') - if int(price) != int(mprice): + if round(price) != round(mprice): temp = {} temp["gameid"] = gameid temp["platform"] = platform diff_gameid.append(temp) logger.info( - f"find {gameid} {platform} price was changed {price} {mprice}!" + f"find {gameid} {platform} price was changed {round(price)} {round(mprice)}!" ) if not cutOff: item['cuttime'] = 0