Update update.py

This commit is contained in:
yasirarism 2023-08-04 07:17:34 +07:00 committed by GitHub
parent d45c8f2cea
commit 1a3350722f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ try:
try:
res = requests.get(ENV_URL)
if res.status_code == 200:
with open("config.env", "wb+") as f:
with open(".env", "wb+") as f:
f.write(res.content)
else:
LOGGER.error(f"config.env err: {res.status_code}")
@ -38,7 +38,7 @@ try:
except:
pass
dotenv.load_dotenv("config.env", override=True)
dotenv.load_dotenv(".env", override=True)
UPSTREAM_REPO_URL = os.environ.get("UPSTREAM_REPO_URL")
UPSTREAM_REPO_BRANCH = os.environ.get("UPSTREAM_REPO_BRANCH")