fixed siblings

This commit is contained in:
zurdi
2024-06-17 17:38:02 +02:00
parent 23c560a3e9
commit daf2fd2f87

View File

@@ -118,8 +118,16 @@ class Rom(BaseModel):
Rom.platform_id == self.platform_id,
Rom.id != self.id,
or_(
and_(Rom.igdb_id == self.igdb_id, Rom.igdb_id is not None),
and_(Rom.moby_id == self.moby_id, Rom.moby_id is not None),
and_(
Rom.igdb_id == self.igdb_id,
Rom.igdb_id is not None,
Rom.igdb_id != "",
),
and_(
Rom.moby_id == self.moby_id,
Rom.moby_id is not None,
Rom.moby_id != "",
),
),
)
)