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