fix(library): dir=all = union de made+received (page partagée nominale visible dans Tous)
FlowDeck CI / test (push) Failing after 18s
FlowDeck CI / docker (push) Skipped

This commit is contained in:
2026-09-08 11:58:31 -04:00
parent 0112a5b5d8
commit 15cc2d6f21
2 changed files with 14 additions and 3 deletions
+3 -3
View File
@@ -224,12 +224,12 @@ async def library_shared(
params: list = []
if dir in ("all", "made"):
conds.append("p.share_mode != 'private'")
if dir in ("all", "made") and made_ids:
conds.append(f"p.id IN ({','.join('?' for _ in made_ids)})")
params.extend(made_ids)
if dir in ("all", "received") and recv_ids:
conds.append(f"p.id IN ({','.join('?' for _ in recv_ids)})")
params.extend(recv_ids)
if dir == "made" and made_ids:
conds.append(f"p.id IN ({','.join('?' for _ in made_ids)})")
params.extend(made_ids)
if dir == "received" and not recv_ids:
return {"items": []}