MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / is_syndicated

Method is_syndicated

scripts/website/syndicate_blog_posts.py:128–133  ·  view source on GitHub ↗
(self, slug: str, platform: str)

Source from the content-addressed store, hash-verified

126 handle.write("\n")
127
128 def is_syndicated(self, slug: str, platform: str) -> bool:
129 post = self.raw["posts"].get(slug)
130 if not post:
131 return False
132 entry = post.get(platform)
133 return bool(entry and entry.get("url"))
134
135 def record(self, slug: str, platform: str, payload: dict[str, Any]) -> None:
136 post = self.raw["posts"].setdefault(slug, {})

Callers 4

mainFunction · 0.80
pendingFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected