Script execution

This commit is contained in:
gac-S_Changer
2017-07-10 18:05:26 +02:00
parent d4a3a1598a
commit cdad542c86

View File

@@ -145,7 +145,7 @@ def get_blocks():
def detect_pucks(point_list, block_id=None):
for puck in get_pucks(id):
for puck in get_pucks(block_id):
puck.detect = DET_ERROR
for point in point_list:
match = puck.match(point[0], point[1])
@@ -155,6 +155,4 @@ def detect_pucks(point_list, block_id=None):
elif match==DET_MINISPINE:
puck.detect = DET_EMPTY if (puck.detect==DET_UNIPUCK) else DET_MINISPINE
detect_pucks(points)
for puck in get_pucks():
print puck.id, puck.detect