From 2f92fdd4522bbea7789b196a44a73da7cb43f1da Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Fri, 13 Oct 2023 00:22:37 +0530 Subject: [PATCH] Included date in index --- index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index d14b1f6..0948ef7 100644 --- a/index.py +++ b/index.py @@ -99,11 +99,11 @@ class Index(QMainWindow): with ZipFile(file) as zf: with zf.open("prescription.json") as pf: pres=json.loads(pf.read()) - self.index.append([pres["id"], pres["name"], pres["age"], pres["sex"], file]) + self.index.append([pres["id"], pres["name"], pres["age"], pres["sex"], pres["date"], file]) def load(self): model=QStandardItemModel() - model.setHorizontalHeaderLabels(["ID", "Name", "Age", "Sex", "File"]) + model.setHorizontalHeaderLabels(["ID", "Name", "Age", "Sex", "Date", "File"]) for item in self.index: row=[] for i in item: -- 2.39.5