Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .semversioner/next-release/patch-20251110004953346654.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "patch",
"description": "Fix type mismatch in DynamicCommunitySelection when checking children communities. Convert child IDs to string to match self.reports key type (fixes #2004)"
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ async def select(self, query: str) -> tuple[list[CommunityReport], dict[str, Any
# TODO check why some sub_communities are NOT in report_df
if community in self.communities:
for child in self.communities[community].children:
if child in self.reports:
communities_to_rate.append(child)
# Convert child to string to match self.reports key type
child_str = str(child)
if child_str in self.reports:
communities_to_rate.append(child_str)
else:
logger.debug(
"dynamic community selection: cannot find community %s in reports",
Expand Down