mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
brmbar.Currency.create(): Fix call
This commit is contained in:
parent
34bfac01d5
commit
8ed210bac9
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Currency:
|
|||
with closing(db.cursor()) as cur:
|
||||
cur.execute("INSERT INTO currencies (name) VALUES (%s) RETURNING id", [name])
|
||||
id = cur.fetchone()[0]
|
||||
return cls.new(db, name = name, id = id)
|
||||
return cls(db, name = name, id = id)
|
||||
|
||||
def rates(self, other):
|
||||
""" Return tuple ($buy, $sell) of rates of $self in relation to $other (brmbar.Currency):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue