mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-04-26 00:58:35 -05:00
mai2_item_present fixed
This commit is contained in:
parent
96a252cbf3
commit
ed2b6044ff
|
|
@ -728,10 +728,11 @@ class Mai2ItemData(BaseData):
|
||||||
# Do an anti-join with the mai2_item_item table to exclude any
|
# Do an anti-join with the mai2_item_item table to exclude any
|
||||||
# items the users have already owned.
|
# items the users have already owned.
|
||||||
if exclude_owned:
|
if exclude_owned:
|
||||||
sql = sql.join(
|
sql = sql.outerjoin(
|
||||||
item,
|
item,
|
||||||
(present.c.itemKind == item.c.itemKind)
|
(present.c.itemKind == item.c.itemKind)
|
||||||
& (present.c.itemId == item.c.itemId)
|
& (present.c.itemId == item.c.itemId)
|
||||||
|
& (item.c.user == user_id)
|
||||||
)
|
)
|
||||||
condition &= (item.c.itemKind.is_(None) & item.c.itemId.is_(None))
|
condition &= (item.c.itemKind.is_(None) & item.c.itemId.is_(None))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user