brmbar.Currency.convert(): Fix missing assignment

This commit is contained in:
Petr Baudis 2012-09-24 01:57:10 +02:00
parent ef7d1083ea
commit 7574b916cd

View file

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