Skip to content

Commit

Permalink
- fix indice error
Browse files Browse the repository at this point in the history
  • Loading branch information
wahyubiman committed Jul 3, 2022
1 parent 77a8269 commit 50dc9b3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/notification/tele.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ async def send_notif(signals):
await bot.start(bot_token=os.getenv('TELE_BOT_TOKEN'))
entity = await bot.get_entity(TG_CHANNEL_NAME)
msg += msg_header
for i in signals:
if i == 0:
msg += f"""MSB High Break :
msg += f"""MSB High Break :
"""
elif i == 1:
msg += f"""MSB Low Break :
for signal in signals[0]:
msg += "-> {} \n".format(signal)
msg += f"""MSB Low Break :
"""
for signal in signals[i]:
msg += "-> {} \n".format(signal)
for signal in signals[1]:
msg += "-> {} \n".format(signal)
msg += f"""
>>> {str(pd.to_datetime(time.time(), unit='s').tz_localize('UTC').tz_convert('Asia/Jakarta').strftime('%m/%d/%Y %H:%M:%S'))}"""
await bot.send_message(entity, msg)
Expand Down

0 comments on commit 50dc9b3

Please sign in to comment.