Release: Explore diversification, model-swap, Camie/centroid retirement, tag-API, crop proposers #155

Merged
bvandeusen merged 10 commits from dev into main 2026-06-30 16:06:13 -04:00
Showing only changes of commit 3d7f60a6e3 - Show all commits
+3 -3
View File
@@ -127,15 +127,15 @@ async def tag_stats(tag_id: int):
tag = await session.get(Tag, tag_id)
if tag is None:
return jsonify({"error": "not found"}), 404
by_source = {
src: n for src, n in (
by_source = dict(
(
await session.execute(
select(image_tag.c.source, func.count())
.where(image_tag.c.tag_id == tag_id)
.group_by(image_tag.c.source)
)
).all()
}
)
rejected = (
await session.execute(
select(func.count())