accessing position.id instead of pid

This commit is contained in:
Giulio De Pasquale 2020-12-14 14:50:04 +00:00
parent d1e9be15a1
commit 9d9565a9af

View File

@ -130,7 +130,7 @@ class SymbolStatus:
if self.current_tick == 1: if self.current_tick == 1:
return None return None
return next(filter(lambda x: x.pid == pid, self.positions[self.current_tick - 1])) return next(filter(lambda x: x.position.id == pid, self.positions[self.current_tick - 1]))
async def __add_event__(self, event: Event): async def __add_event__(self, event: Event):
self.events.append(event) self.events.append(event)