MCPcopy
hub / github.com/doocs/leetcode / load_refresh_config

Function load_refresh_config

solution/util.py:80–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def load_refresh_config() -> bool:
81 env_file = "./.env"
82 if not os.path.exists(env_file):
83 return False
84 with open(env_file, "r") as f:
85 lines = f.readlines()
86 for line in lines:
87 if line.startswith("REFRESH"):
88 parts = line.split("=")[1:]
89 return "=".join(parts).strip().strip('"') == "True"
90 return False
91
92
93def load_result() -> List[dict]:

Callers 1

runFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected