This commit is contained in:
better629 2023-12-22 16:35:59 +08:00
parent 7816488445
commit a6346c7bce

View file

@ -400,7 +400,7 @@ class Role(BaseModel):
observed_pure = [msg.dict(exclude={"id": True}) for msg in observed]
existed_pure = [msg.dict(exclude={"id": True}) for msg in existed]
for idx, new in enumerate(observed_pure):
if (new["cause_by"] in self._rc.watch and new not in existed_pure) or (not self._rc.watch):
if new["cause_by"] in self._rc.watch and new not in existed_pure:
news.append(observed[idx])
return news