diff --git a/lib/options.py b/lib/options.py index fb78e4e..be54481 100644 --- a/lib/options.py +++ b/lib/options.py @@ -42,7 +42,7 @@ def check(self,url): def output(self): - if self.format not in ["html", "json", "xls"]: + if self.format not in ["html", "json", "xlsx"]: errMsg = "Ouput args is error,eg(html,json,xlsx default:html)" logging.error(errMsg) exit(0) diff --git a/lib/output.py b/lib/output.py index 5955db7..a08f150 100644 --- a/lib/output.py +++ b/lib/output.py @@ -22,7 +22,7 @@ def __init__(self): self.outHtml() if Save.format == 'json' and Webinfo.result: self.outJson() - if Save.format == 'xls' and Webinfo.result: + if Save.format == 'xlsx' and Webinfo.result: self.outXls() def outHtml(self):