Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ class HiveMind:
|
|
| 37 |
def update_collective_memory(self, ant_memories):
|
| 38 |
for ant_memory in ant_memories:
|
| 39 |
for position, info in ant_memory:
|
| 40 |
-
|
| 41 |
self.collective_memory[position] = info
|
| 42 |
else:
|
| 43 |
old_info = self.collective_memory[position]
|
|
|
|
| 37 |
def update_collective_memory(self, ant_memories):
|
| 38 |
for ant_memory in ant_memories:
|
| 39 |
for position, info in ant_memory:
|
| 40 |
+
if position not in self.collective_memory:
|
| 41 |
self.collective_memory[position] = info
|
| 42 |
else:
|
| 43 |
old_info = self.collective_memory[position]
|