mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
brmbar.Currency.convert(): Fix missing assignment
This commit is contained in:
parent
ef7d1083ea
commit
7574b916cd
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ class Currency:
|
||||||
res = cur.fetchone()
|
res = cur.fetchone()
|
||||||
if res is None:
|
if res is None:
|
||||||
raise NameError("Currency.convert(): Unknown conversion " + self.name() + " to " + other.name())
|
raise NameError("Currency.convert(): Unknown conversion " + self.name() + " to " + other.name())
|
||||||
|
rate, rate_dir = res
|
||||||
if rate_dir == "source_to_target":
|
if rate_dir == "source_to_target":
|
||||||
resamount = amount * rate
|
resamount = amount * rate
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue