MCPcopy Create free account
hub / github.com/Qinbf/groundmap / page_visible

Function page_visible

scripts/k.py:619–626  ·  view source on GitHub ↗
(p: Page)

Source from the content-addressed store, hash-verified

617 """
618 # ---- 过滤节点集 ----
619 def page_visible(p: Page) -> bool:
620 if not include_archive and "_archive" in p.path:
621 return False
622 if filter_type and p.type != filter_type:
623 return False
624 if filter_tag and filter_tag not in p.tags:
625 return False
626 return True
627
628 visible_pages = [p for p in pages if page_visible(p)]
629 visible_paths = {p.path for p in visible_pages}

Callers 1

build_graph_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected