accessing position.id instead of pid
This commit is contained in:
parent
d1e9be15a1
commit
9d9565a9af
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user