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

Method GET

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

Source from the content-addressed store, hash-verified

518 """Clear web.amazon_queue and return the queue size before it was cleared."""
519
520 def GET(self) -> str:
521 qsize = web.amazon_queue.qsize()
522 web.amazon_queue.queue.clear()
523 stats.put(
524 "ol.affiliate.amazon.currently_queued_isbns",
525 web.amazon_queue.qsize(),
526 )
527 return json.dumps({"Cleared": "True", "qsize": qsize})
528
529
530class Submit:

Callers

nothing calls this directly

Calls 2

dumpsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected