Исправление формирования истории
This commit is contained in:
parent
20d46de4bd
commit
fd31db097d
2
main.py
2
main.py
@ -141,9 +141,9 @@ def check():
|
|||||||
limits = atmInfo['limits']
|
limits = atmInfo['limits']
|
||||||
for limit in limits:
|
for limit in limits:
|
||||||
if limit['currency'] == 'USD':
|
if limit['currency'] == 'USD':
|
||||||
|
history.append(f'{datetime.now()}: {decoded["address"]} - Сумма: {limit["amount"]}$')
|
||||||
for id in id_chats:
|
for id in id_chats:
|
||||||
bot.send_message(id, f'{decoded["address"]} - Сумма: {limit["amount"]}$')
|
bot.send_message(id, f'{decoded["address"]} - Сумма: {limit["amount"]}$')
|
||||||
history.append(f'{datetime.now()}: {decoded["address"]} - Сумма: {limit["amount"]}$')
|
|
||||||
count += 1
|
count += 1
|
||||||
last_check = datetime.now()
|
last_check = datetime.now()
|
||||||
time.sleep(600)
|
time.sleep(600)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user