]> Softwares of Agnibho - medscript.git/commitdiff
Included date in index
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 12 Oct 2023 18:52:37 +0000 (00:22 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 12 Oct 2023 18:52:37 +0000 (00:22 +0530)
index.py

index d14b1f67edd01655f8ef134fe3bce637589a5623..0948ef70e8b7e7962804f6ae9947945ba0c5697a 100644 (file)
--- 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: