fix: 修正数据填充错误

This commit is contained in:
iridiumR 2023-06-05 00:07:26 +08:00
parent 6dfac9cc82
commit 4bada637bd
No known key found for this signature in database
GPG key ID: 49735733EB1A32C8

View file

@ -243,8 +243,6 @@ class CategoryTab(TabPage):
for i in range(len(self.transData)): for i in range(len(self.transData)):
self.categoryTable.setItem(i, 0, QTableWidgetItem(self.transData[i][4].strftime("%Y-%m-%d %H:%M:%S"))) self.categoryTable.setItem(i, 0, QTableWidgetItem(self.transData[i][4].strftime("%Y-%m-%d %H:%M:%S")))
self.categoryTable.setItem(i, 1, QTableWidgetItem(self.accountData[self.transData[i][1]-1][1])) self.categoryTable.setItem(i, 1, QTableWidgetItem(self.accountData[self.transData[i][1]-1][1]))
if self.transData[i][2] is None: self.categoryTable.setItem(i, 2, QTableWidgetItem(str(self.transData[i][5])))
self.categoryTable.setItem(i, 2, QTableWidgetItem("None"))
else:
self.categoryTable.setItem(i, 2, QTableWidgetItem(self.categoryData[self.transData[i][2]-1][1]))
self.categoryTable.setItem(i, 3, QTableWidgetItem(self.transData[i][6])) self.categoryTable.setItem(i, 3, QTableWidgetItem(self.transData[i][6]))