- attempting to fix issue #492 - when checking for tools present in the database there were some errors in the NCC, ISO, MILL, PAINT and CUTOUT Tools
This commit is contained in:
committed by
Marius Stanciu
parent
9e9eabb04e
commit
8c8b781bdb
@@ -1050,7 +1050,7 @@ class ToolDrilling(AppTool, Excellon):
|
||||
if orig_tooldia == db_tooldia:
|
||||
tool_found += 1
|
||||
for d in db_tool_val['data']:
|
||||
if d.find('tools_drill') == 0:
|
||||
if d.find('tools_drill_') == 0:
|
||||
new_tools_dict[orig_tool]['data'][d] = db_tool_val['data'][d]
|
||||
elif d.find('tools_') == 0:
|
||||
# don't need data for other App Tools; this tests after 'tools_drill_'
|
||||
@@ -1062,7 +1062,7 @@ class ToolDrilling(AppTool, Excellon):
|
||||
tool_found += 1
|
||||
new_tools_dict[orig_tool]['tooldia'] = db_tooldia
|
||||
for d in db_tool_val['data']:
|
||||
if d.find('tools_drill') == 0:
|
||||
if d.find('tools_drill_') == 0:
|
||||
new_tools_dict[orig_tool]['data'][d] = db_tool_val['data'][d]
|
||||
elif d.find('tools_') == 0:
|
||||
# don't need data for other App Tools; this tests after 'tools_drill_'
|
||||
|
||||
Reference in New Issue
Block a user