fix: 修正美元符号为人民币符号
This commit is contained in:
parent
c5588f3a4a
commit
ec9f101d96
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ class AccountTab(TabPage):
|
||||||
meta->>'description' FROM transaction \
|
meta->>'description' FROM transaction \
|
||||||
WHERE a_id = %s ORDER BY time DESC", (a_id,))
|
WHERE a_id = %s ORDER BY time DESC", (a_id,))
|
||||||
self.transData = self.pg.fetchall()
|
self.transData = self.pg.fetchall()
|
||||||
self.pg.execute("SELECT a_id, meta ->> 'name', balance FROM account ORDER BY a_id")
|
self.pg.execute("SELECT a_id, meta ->> 'name', translate(balance::varchar,'$','¥') FROM account ORDER BY a_id")
|
||||||
self.accountData = self.pg.fetchall()
|
self.accountData = self.pg.fetchall()
|
||||||
self.pg.execute("SELECT c_id, meta ->> 'name' FROM category ORDER BY c_id")
|
self.pg.execute("SELECT c_id, meta ->> 'name' FROM category ORDER BY c_id")
|
||||||
self.categoryData = self.pg.fetchall()
|
self.categoryData = self.pg.fetchall()
|
||||||
|
|
Loading…
Reference in a new issue