Skip to content

Commit 5c81dc0

Browse files
committed
fix query
1 parent 20b72b4 commit 5c81dc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/btrixcloud/pages.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,12 @@ async def get_top_page_hosts(
940940
}
941941
}
942942
},
943-
{"$group": {"_id": "$host.captures", "count": {"$count": {}}}},
943+
{
944+
"$group": {
945+
"_id": {"$first": "$host.captures"},
946+
"count": {"$count": {}},
947+
}
948+
},
944949
{"$sort": {"count": -1}},
945950
]
946951
)

0 commit comments

Comments
 (0)