correct handling when adding new cluster numbers

This commit is contained in:
Ozbolt Menegatti 2020-04-05 17:14:06 +02:00
parent 6912222a53
commit e29b7f503d

View File

@ -111,7 +111,5 @@ class ExampleClusterEdit(DataChgClickMessage):
class ExampleClusterAdd(DataChgClickMessage):
def update_model(self, model):
example = self.get_arg(0, Example)
max_example_cluster_num = ExampleClusters.first_empty_cluster()
example.set_cluster(max_example_cluster_num + 1)
example.set_cluster(ExampleClusters.first_empty_cluster())