提交 7896d041 编写于 作者: C cuixucui

Code specification rectification

上级 2e1f709e
......@@ -58,7 +58,7 @@ class CertDocument(Document):
get hardware and release information
"""
def __init__(self, filename, document=''):
super(CertDocument, self).__init__(filename, document)
# super(CertDocument, self).__init__(filename, document)
self.document = dict()
self.filename = filename
if not document:
......@@ -121,7 +121,7 @@ class DeviceDocument(Document):
get device document
"""
def __init__(self, filename, devices=''):
super(DeviceDocument, self).__init__(filename, devices)
# super(DeviceDocument, self).__init__(filename, devices)
self.filename = filename
self.document = list()
if not devices:
......@@ -137,7 +137,7 @@ class FactoryDocument(Document):
"""
def __init__(self, filename, factory=''):
super(FactoryDocument, self).__init__(filename, factory)
# super(FactoryDocument, self).__init__(filename, factory)
self.document = list()
self.filename = filename
if not factory:
......
......@@ -67,7 +67,7 @@ def get_results():
results[host] = {}
for oec_id in next(os.walk(dir_host))[1]:
dir_id = os.path.join(dir_host, oec_id)
results[host][id] = next(os.walk(dir_id))[1]
results[host][oec_id] = next(os.walk(dir_id))[1]
return render_template('results.html', results=results)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册