lf_qa: Remove invalid comparisons

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-11-16 11:04:54 -08:00
parent 1d244e69e5
commit fb2652a9e8

View File

@@ -22,7 +22,7 @@ lf_report = lf_report.lf_report
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
class csv_sql(): class csv_sql:
def __init__(self, def __init__(self,
_path='.', _path='.',
_file='kpi.csv', _file='kpi.csv',
@@ -582,16 +582,15 @@ Usage: lf_qa.py --store --png --path <path to directories to traverse> --databas
database=__database, table=__table, database=__database, table=__table,
server=__server, store=args.store, png=args.png)) server=__server, store=args.store, png=args.png))
if(__path == '' and args.store): if __path == '' and args.store:
print("--path <path of kpi.csv> must be entered if --store , exiting") print("--path <path of kpi.csv> must be entered if --store , exiting")
exit(1) exit(1)
elif not args.store:
if(args.png and args.store is False): if args.png:
print("if --png set to create png files then --store must also be set, exiting") print("if --png set to create png files then --store must also be set, exiting")
exit(1) exit(1)
elif not args.png:
if args.store is False and args.png is False: print("Need to enter an action of --store --png ")
print("Need to enter an action of --store --png ")
# create report class for reporting # create report class for reporting
report = lf_report(_path=__path, report = lf_report(_path=__path,