From fb2652a9e8a7df8e8d09ab349ce07ba8a0b29c8e Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Tue, 16 Nov 2021 11:04:54 -0800 Subject: [PATCH] lf_qa: Remove invalid comparisons Signed-off-by: Matthew Stidham --- py-scripts/tools/lf_qa.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/py-scripts/tools/lf_qa.py b/py-scripts/tools/lf_qa.py index fc937259..3912dba3 100755 --- a/py-scripts/tools/lf_qa.py +++ b/py-scripts/tools/lf_qa.py @@ -22,7 +22,7 @@ lf_report = lf_report.lf_report external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] -class csv_sql(): +class csv_sql: def __init__(self, _path='.', _file='kpi.csv', @@ -582,16 +582,15 @@ Usage: lf_qa.py --store --png --path --databas database=__database, table=__table, server=__server, store=args.store, png=args.png)) - if(__path == '' and args.store): + if __path == '' and args.store: print("--path must be entered if --store , exiting") exit(1) - - if(args.png and args.store is False): - print("if --png set to create png files then --store must also be set, exiting") - exit(1) - - if args.store is False and args.png is False: - print("Need to enter an action of --store --png ") + elif not args.store: + if args.png: + print("if --png set to create png files then --store must also be set, exiting") + exit(1) + elif not args.png: + print("Need to enter an action of --store --png ") # create report class for reporting report = lf_report(_path=__path,