From: Agnibho Mondal Date: Thu, 9 Nov 2023 21:47:43 +0000 (+0530) Subject: Show DAW only if true X-Git-Tag: v0.5~26 X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=9ea8fb70449a4ce0a47a7499b782794c3495db25;p=medscript.git Show DAW only if true --- diff --git a/renderbox.py b/renderbox.py index 864df92..13e43f8 100644 --- a/renderbox.py +++ b/renderbox.py @@ -113,7 +113,7 @@ class UnrenderBox(QDialog): text=text+""+value.upper()+"
" text=text+"
" 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+""+attr.upper()+"
" text=text+str(value)+"
" self.display.setText(text)