black shift
This commit is contained in:
@@ -6,6 +6,7 @@ class EventCluster:
|
||||
"""
|
||||
EventCluster
|
||||
"""
|
||||
|
||||
def __init__(self, endpoint_uu_id: str):
|
||||
self.endpoint_uu_id = endpoint_uu_id
|
||||
self.events = []
|
||||
@@ -96,13 +97,17 @@ class SetEventCluster:
|
||||
"""
|
||||
SetEventCluster
|
||||
"""
|
||||
|
||||
list_of_event_clusters: list[EventCluster] = []
|
||||
|
||||
def add_event_cluster(self, event_cluster: EventCluster):
|
||||
"""
|
||||
Add an event cluster to the set
|
||||
"""
|
||||
endpoint_uu_id_list = [event_cluster_uuid.endpoint_uu_id for event_cluster_uuid in self.list_of_event_clusters]
|
||||
endpoint_uu_id_list = [
|
||||
event_cluster_uuid.endpoint_uu_id
|
||||
for event_cluster_uuid in self.list_of_event_clusters
|
||||
]
|
||||
if event_cluster.endpoint_uu_id not in endpoint_uu_id_list:
|
||||
self.list_of_event_clusters.append(event_cluster)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user