mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-19 11:39:37 +08:00
Compare commits
No commits in common. "179856adcadb52e8a67fd3ed46f52b1f6532cbd9" and "fe4643ff7cfed530e0a4b0f994d4236ef5a17ccd" have entirely different histories.
179856adca
...
fe4643ff7c
@ -1,4 +0,0 @@
|
||||
.git
|
||||
.github
|
||||
__pycache__
|
||||
/img
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
quark_config_debug.json
|
||||
__pycache__
|
||||
/config
|
||||
.vscode
|
||||
@ -8,7 +8,7 @@ WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
# 安装依赖
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --no-cache-dir flask apscheduler requests treelib
|
||||
|
||||
# 时区
|
||||
ENV TZ="Asia/Shanghai"
|
||||
|
||||
@ -46,16 +46,15 @@ class Alist:
|
||||
def refresh(self, path, force_refresh=True):
|
||||
url = f"{self.url}/api/fs/list"
|
||||
headers = {"Authorization": self.token}
|
||||
payload = {
|
||||
querystring = {
|
||||
"path": path,
|
||||
"refresh": force_refresh,
|
||||
"password": "",
|
||||
"page": 1,
|
||||
"per_page": 0,
|
||||
}
|
||||
try:
|
||||
response = requests.request(
|
||||
"POST", url, headers=headers, json=payload
|
||||
"POST", url, headers=headers, params=querystring
|
||||
)
|
||||
response.raise_for_status()
|
||||
response = response.json()
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
flask
|
||||
apscheduler
|
||||
requests
|
||||
treelib
|
||||
Loading…
Reference in New Issue
Block a user