diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-05-08 04:30:50 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-05-08 04:30:50 +0200 |
commit | 78ac482304703ea23fc2d9934756b1dd63aeb9d1 (patch) | |
tree | d48b51f3f2260f9b6a218f5053032e1b1694c6c6 /talerbank | |
parent | 96acdf3805a3bf5b21adb018f3519a4c046ad663 (diff) | |
download | bank-78ac482304703ea23fc2d9934756b1dd63aeb9d1.tar.gz bank-78ac482304703ea23fc2d9934756b1dd63aeb9d1.tar.bz2 bank-78ac482304703ea23fc2d9934756b1dd63aeb9d1.zip |
parsing, next try
Diffstat (limited to 'talerbank')
-rw-r--r-- | talerbank/app/views.py | 2 |
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]) ## |