MCPcopy Create free account
hub / github.com/EASY233/Finger / __init__

Method __init__

lib/output.py:13–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class Output:
13 def __init__(self):
14 self.nowTime = time.strftime("%Y%m%d%H%M%S",time.localtime())
15 Webinfo.result = Webinfo.result + Urlerror.result
16 self.filename_json = self.nowTime + '.json'
17 self.filename_xls = self.nowTime + '.xlsx'
18 self.path_json = os.path.join(path.output,self.filename_json)
19 self.path_xls = os.path.join(path.output,self.filename_xls)
20 if Save.format == 'json' and Webinfo.result:
21 self.outJson()
22 if Save.format == 'xlsx' and Webinfo.result:
23 self.outXls()
24
25
26 def outJson(self):

Callers

nothing calls this directly

Calls 2

outJsonMethod · 0.95
outXlsMethod · 0.95

Tested by

no test coverage detected