]> Softwares of Agnibho - medscript.git/commitdiff
Show DAW only if true
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 9 Nov 2023 21:47:43 +0000 (03:17 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 9 Nov 2023 21:47:43 +0000 (03:17 +0530)
renderbox.py

index 864df924ee80eae9928dbac3e47669aa6cd82c78..13e43f84329387b1a57c1ea15a0f9e8956592adb 100644 (file)
@@ -113,7 +113,7 @@ class UnrenderBox(QDialog):
                 text=text+"<strong>"+value.upper()+"</strong><br>"
         text=text+"<hr>"
         for attr, value in prescription.items():
-            if(attr not in ["prescriber", "custom", "properties", "file"] and len(str(value))>0):
+            if(attr not in ["prescriber", "custom", "properties", "file"] and len(str(value))>0 and (attr not in ["daw"] or value)):
                 text=text+"<strong>"+attr.upper()+"</strong><br>"
                 text=text+str(value)+"<br>"
         self.display.setText(text)