MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / remote_image_issue

Function remote_image_issue

scripts/check_article_quality.py:291–298  ·  view source on GitHub ↗
(url: str, timeout: float)

Source from the content-addressed store, hash-verified

289
290
291def remote_image_issue(url: str, timeout: float) -> str | None:
292 url = url.split("#", 1)[0]
293 if url in REMOTE_IMAGE_CACHE:
294 return REMOTE_IMAGE_CACHE[url]
295
296 issue = request_remote_image(url, timeout)
297 REMOTE_IMAGE_CACHE[url] = issue
298 return issue
299
300
301def request_remote_image(url: str, timeout: float) -> str | None:

Callers 1

image_issueFunction · 0.85

Calls 1

request_remote_imageFunction · 0.85

Tested by

no test coverage detected