提交 5287975e 编写于 作者: nengyuangzhang's avatar nengyuangzhang

fixed PEP8 warnings

上级 a500ff82
......@@ -146,10 +146,10 @@ class Reporting:
space_dict[node.id] = node.name
cursor_system_db.execute(" SELECT ce.id, ce.name AS combined_equipment_name, "
"ce.uuid AS combined_equipment_uuid, s.name AS space_name, "
" ce.uuid AS combined_equipment_uuid, s.name AS space_name, "
" cc.name AS cost_center_name, ce.description "
" FROM tbl_spaces s, tbl_spaces_combined_equipments sce, "
" tbl_combined_equipments ce, tbl_cost_centers cc "
" tbl_combined_equipments ce, tbl_cost_centers cc "
" WHERE s.id IN ( " + ', '.join(map(str, space_dict.keys())) + ") "
" AND sce.space_id = s.id AND sce.combined_equipment_id = ce.id "
" AND ce.cost_center_id = cc.id ", )
......
......@@ -147,10 +147,10 @@ class Reporting:
space_dict[node.id] = node.name
cursor_system_db.execute(" SELECT e.id, e.name AS equipment_name, "
"e.uuid AS equipment_uuid, s.name AS space_name, "
" e.uuid AS equipment_uuid, s.name AS space_name, "
" cc.name AS cost_center_name, e.description "
" FROM tbl_spaces s, tbl_spaces_equipments se, "
" tbl_equipments e, tbl_cost_centers cc "
" tbl_equipments e, tbl_cost_centers cc "
" WHERE s.id IN ( " + ', '.join(map(str, space_dict.keys())) + ") "
" AND se.space_id = s.id AND se.equipment_id = e.id "
" AND e.cost_center_id = cc.id ", )
......
......@@ -147,7 +147,7 @@ class Reporting:
space_dict[node.id] = node.name
cursor_system_db.execute(" SELECT shopfloor.id, shopfloor.name AS shopfloor_name, "
"shopfloor.uuid AS shopfloor_uuid, s.name AS space_name, "
" shopfloor.uuid AS shopfloor_uuid, s.name AS space_name, "
" cc.name AS cost_center_name, shopfloor.description "
" FROM tbl_spaces s, tbl_spaces_shopfloors ss,"
" tbl_shopfloors shopfloor, tbl_cost_centers cc "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册