mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Update update.py
This commit is contained in:
parent
d45c8f2cea
commit
1a3350722f
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue