too many deletes
@@ -200,18 +200,18 @@ class Update_Switch_State(Monitor_Helper_Base):
elif end_point.endpoint_data['active'] == 0:
self.endpoints.set(end_point)
changed = True
- endpoint_hashes = self.endpoints.state.copy()
- for endpoint in endpoint_hashes:
- if endpoint not in machine_hashes:
- del self.endpoints.state[endpoint]
- changed = True
+ #endpoint_hashes = self.endpoints.state.copy()
+ #for endpoint in endpoint_hashes:
+ # if endpoint not in machine_hashes:
+ # del self.endpoints.state[endpoint]
+ # changed = True
if changed:
self.endpoints.print_endpoint_state()
- endpoint_hashes = self.endpoints.state.copy()
- for endpoint in endpoint_hashes:
- if endpoint_hashes[endpoint].endpoint_data['active'] == 0:
- del self.endpoints.state[endpoint]
+ #endpoint_hashes = self.endpoints.state.copy()
+ #for endpoint in endpoint_hashes:
+ # if endpoint_hashes[endpoint].endpoint_data['active'] == 0:
+ # del self.endpoints.state[endpoint]
def update_endpoint_state(self, messages=None):
'''Handles Get requests'''
