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

Function read_cookie

openlibrary/plugins/worksearch/code.py:328–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 return web.input(layout=None).get("layout")
327
328 def read_cookie():
329 if "LBL" in web.ctx.env.get("HTTP_COOKIE", ""):
330 return web.cookies().get("LBL")
331
332 if (qs_value := read_query_string()) is not None:
333 return qs_value

Callers 1

get_remembered_layoutFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected