fix: trans table order by dsec
This commit is contained in:
parent
b636d3d9b2
commit
1e3726318f
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class TransTab(TabPage):
|
||||||
self.dialogLayout.itemAt(5).widget().addItem(self.accountData[i][1])
|
self.dialogLayout.itemAt(5).widget().addItem(self.accountData[i][1])
|
||||||
|
|
||||||
def selected(self):
|
def selected(self):
|
||||||
self.pg.execute("SELECT t_id, a_id, c_id, s_id, time, translate(amount::varchar,'$','¥'), meta->>'description' FROM transaction ORDER BY time")
|
self.pg.execute("SELECT t_id, a_id, c_id, s_id, time, translate(amount::varchar,'$','¥'), meta->>'description' FROM transaction ORDER BY time DESC")
|
||||||
self.transData = self.pg.fetchall()
|
self.transData = self.pg.fetchall()
|
||||||
self.pg.execute("SELECT a_id, meta ->> 'name' FROM account ORDER BY a_id")
|
self.pg.execute("SELECT a_id, meta ->> 'name' FROM account ORDER BY a_id")
|
||||||
self.accountData = self.pg.fetchall()
|
self.accountData = self.pg.fetchall()
|
||||||
|
|
Loading…
Reference in a new issue