fix: 修正美元符号为人民币符号

This commit is contained in:
iridiumR 2023-06-05 17:51:17 +08:00
parent c5588f3a4a
commit ec9f101d96
No known key found for this signature in database
GPG key ID: 49735733EB1A32C8

View file

@ -225,7 +225,7 @@ class AccountTab(TabPage):
meta->>'description' FROM transaction \
WHERE a_id = %s ORDER BY time DESC", (a_id,))
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.pg.execute("SELECT c_id, meta ->> 'name' FROM category ORDER BY c_id")
self.categoryData = self.pg.fetchall()