Merge pull request 'mai2_item_present fixed' (#208) from SoulGateKey/artemis:fix_mai2_present into develop

Reviewed-on: Hay1tsme/artemis#208
This commit is contained in:
2025-04-07 23:41:34 +00:00

View File

@ -728,10 +728,11 @@ class Mai2ItemData(BaseData):
# Do an anti-join with the mai2_item_item table to exclude any
# items the users have already owned.
if exclude_owned:
sql = sql.join(
sql = sql.outerjoin(
item,
(present.c.itemKind == item.c.itemKind)
& (present.c.itemId == item.c.itemId)
& (item.c.user == user_id)
)
condition &= (item.c.itemKind.is_(None) & item.c.itemId.is_(None))