MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / is_success

Function is_success

wxapp/BREO.py:51–52  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

49 return f"{token[:6]}***{token[-6:]}"
50
51def is_success(result):
52 return result.get("success") is True or str(result.get("code")) in ("0000", "200", "200.0")
53
54def is_token_error(message):
55 text = str(message)

Callers 2

login_with_codeFunction · 0.85
validate_tokenFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected