MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / GET

Method GET

scripts/affiliate_server.py:507–514  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

505
506class Status:
507 def GET(self) -> str:
508 return json.dumps(
509 {
510 "thread_is_alive": bool(web.amazon_lookup_thread and web.amazon_lookup_thread.is_alive()),
511 "queue_size": web.amazon_queue.qsize(),
512 "queue": [isbn.to_dict() for isbn in web.amazon_queue.queue],
513 }
514 )
515
516
517class Clear:

Callers

nothing calls this directly

Calls 2

dumpsMethod · 0.80
to_dictMethod · 0.45

Tested by

no test coverage detected