summaryrefslogtreecommitdiff
path: root/talerbank
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-08 04:30:50 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-08 04:30:50 +0200
commit78ac482304703ea23fc2d9934756b1dd63aeb9d1 (patch)
treed48b51f3f2260f9b6a218f5053032e1b1694c6c6 /talerbank
parent96acdf3805a3bf5b21adb018f3519a4c046ad663 (diff)
downloadbank-78ac482304703ea23fc2d9934756b1dd63aeb9d1.tar.gz
bank-78ac482304703ea23fc2d9934756b1dd63aeb9d1.tar.bz2
bank-78ac482304703ea23fc2d9934756b1dd63aeb9d1.zip
parsing, next try
Diffstat (limited to 'talerbank')
-rw-r--r--talerbank/app/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 4a3caf3..79c58b1 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -312,7 +312,7 @@ def get_acct_from_payto(uri_str: str) -> int:
wire_uri = urlparse(uri_str)
if wire_uri.scheme != "payto":
raise Exception("wire URI must be a payto URI")
- return int(wire_uri.split("/")[-1])
+ return int(wire_uri.netloc.split("/")[-1])
##