mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Fix Paymend/Payment typo
This commit is contained in:
parent
114c67799d
commit
5a6c3bd379
2 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ def UpdateCoin(param):
|
||||||
tx_hash=p["tx_hash"]
|
tx_hash=p["tx_hash"]
|
||||||
amount=p["amount"]
|
amount=p["amount"]
|
||||||
try:
|
try:
|
||||||
recipient = GetNickFromPaymendID(payment_id)
|
recipient = GetNickFromPaymentID(payment_id)
|
||||||
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
|
log_info('UpdateCoin: Found payment %s to %s for %s' % (tx_hash,recipient, AmountToString(amount)))
|
||||||
pipe.hincrby("balances",recipient,amount);
|
pipe.hincrby("balances",recipient,amount);
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
|
|
|
@ -49,9 +49,9 @@ def GetPaymentID(nick):
|
||||||
log_error('GetPaymentID: failed to set payment ID for %s to redis: %s' % (nick,str(e)))
|
log_error('GetPaymentID: failed to set payment ID for %s to redis: %s' % (nick,str(e)))
|
||||||
return p
|
return p
|
||||||
|
|
||||||
def GetNickFromPaymendID(p):
|
def GetNickFromPaymentID(p):
|
||||||
nick = redis_hget("paymentid",p)
|
nick = redis_hget("paymentid",p)
|
||||||
log_log('PaymendID %s => %s' % (p, str(nick)))
|
log_log('PaymentID %s => %s' % (p, str(nick)))
|
||||||
return nick
|
return nick
|
||||||
|
|
||||||
def AmountToString(amount):
|
def AmountToString(amount):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue