Skip to content

Commit

Permalink
更新 Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Mar 2, 2024
1 parent 69cbcdc commit 2895763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local_test*
tmp/
config.json
config.yaml
.DS_Store

.alist-sync-cache/
alist_sync/.alist-sync-cache/
Expand Down
6 changes: 4 additions & 2 deletions tools/create_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
password=admin_password,
)

print("local_client", admin_password)
# 如果--, 删除全部存储器
if os.getenv("_RELOAD_STORAGE"):
for i in local_client.admin_storage_list().data.content:
print("_RELOAD_STORAGE =", os.getenv("_RELOAD_STORAGE"))
if os.getenv("_RELOAD_STORAGE") == "true":
for i in local_client.admin_storage_list().data.content or []:
local_client.admin_storage_delete(i.id)

# 创建本地存储器
Expand Down

0 comments on commit 2895763

Please sign in to comment.