fix transfers with new website
This commit is contained in:
parent
d67b6449d1
commit
cc626bfd81
1 changed files with 6 additions and 0 deletions
|
|
@ -61,6 +61,12 @@ class TransferPage(BasePage):
|
||||||
def transfer(self, from_id, to_id, amount, reason):
|
def transfer(self, from_id, to_id, amount, reason):
|
||||||
accounts = self.get_accounts()
|
accounts = self.get_accounts()
|
||||||
|
|
||||||
|
# Transform RIBs to short IDs
|
||||||
|
if len(str(from_id)) == 23:
|
||||||
|
from_id = str(from_id)[5:21]
|
||||||
|
if len(str(to_id)) == 23:
|
||||||
|
to_id = str(to_id)[5:21]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sender = accounts[from_id]
|
sender = accounts[from_id]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue