mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-05 16:56:19 +00:00
Refactor environment variable loading for OMADA_SITE_ID and OMADA_GROUP_ID to include default values
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m32s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m32s
This commit is contained in:
parent
12074c7752
commit
5600a5e8e6
@ -16,12 +16,8 @@ env.read_env(os.path.join(BASE_DIR, ".env"))
|
||||
PERSON_VERIFY_BASE_URL = env.str("PERSON_VERIFY_BASE_URL", default="") # type: ignore
|
||||
OMADA_PROXY_API_KEY = env.str("OMADA_PROXY_API_KEY", default="") # type: ignore
|
||||
OMADA_PROXY_URL = env("OMADA_PROXY_URL", default="") # type: ignore
|
||||
OMADA_SITE_ID = env(
|
||||
"OMADA_SITE_ID",
|
||||
)
|
||||
OMADA_GROUP_ID = env(
|
||||
"OMADA_GROUP_ID",
|
||||
)
|
||||
OMADA_SITE_ID = env("OMADA_SITE_ID", default="") # type: ignore
|
||||
OMADA_GROUP_ID = env("OMADA_GROUP_ID", default="") # type: ignore
|
||||
|
||||
if not OMADA_SITE_ID:
|
||||
raise ValueError(
|
||||
|
Loading…
x
Reference in New Issue
Block a user