This commit is contained in:
dsyoon
2023-08-31 22:04:46 +09:00
parent 903562caaa
commit bed0f6a4e8

View File

@@ -13,8 +13,8 @@ class HTS_Alert :
def checkPrice(self, code):
code_index = 0
PERCENT = ["40%", "30%", "30%"]
CHECK_PRICE = [2670, 2620, 2580]
PERCENT = ["50%", "50%"]
CHECK_PRICE = [2565, 2422]
THIS_TIME = datetime.now()
today = datetime.today().strftime('%Y%m%d')
@@ -32,7 +32,7 @@ class HTS_Alert :
self.slackBot.sendMsg(code + " " + str(CHECK_PRICE[code_index]) + " " + PERCENT[code_index] + "를 파세요...")
code_index += 1
if code_index > 2:
if code_index > len(CHECK_PRICE):
break
time.sleep(60)