mirror of
https://github.com/Steffo99/greed.git
synced 2025-03-13 12:17:27 +00:00
Fix loop error
This commit is contained in:
parent
a32c9e3148
commit
bfbf7b0cdf
1 changed files with 6 additions and 6 deletions
12
worker.py
12
worker.py
|
@ -839,18 +839,18 @@ class ChatWorker(threading.Thread):
|
|||
# Add and commit the transaction
|
||||
self.session.add(new_transaction)
|
||||
self.session.commit()
|
||||
response = "Confirmed"
|
||||
break
|
||||
#response = "Confirmed"
|
||||
#break
|
||||
else:
|
||||
# Not confirmed yet
|
||||
self.session.commit()
|
||||
time.sleep(30)
|
||||
continue
|
||||
#time.sleep(30)
|
||||
#continue
|
||||
else:
|
||||
# Already processed
|
||||
self.session.commit()
|
||||
response = "Confirmed"
|
||||
break
|
||||
#response = "Confirmed"
|
||||
#break
|
||||
self.bot.send_message(self.chat.id, "Payment recieved!\nYour account has been credited.")
|
||||
else:
|
||||
self.bot.send_message(self.chat.id, "Payment recieved!\nYour account will be credited on confirmation.")
|
||||
|
|
Loading…
Add table
Reference in a new issue