mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 00:57:23 +08:00
fix issue #2004 using KeenhoChu idea in his PR
This commit is contained in:
parent
c296f1ae15
commit
5793486e95
@ -123,8 +123,10 @@ class DynamicCommunitySelection:
|
||||
# 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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user