Fix Paymend/Payment typo

This commit is contained in:
moneromooo 2015-01-10 20:35:10 +00:00
parent 114c67799d
commit 5a6c3bd379
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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):