build a list

This commit is contained in:
2026-04-01 15:19:35 +08:00
parent 01e6c220a0
commit 6d57bfdd61

View File

@@ -263,7 +263,7 @@ def build_file_associations(
if 'www.21cnjy.com' in url1 and twole_files: if 'www.21cnjy.com' in url1 and twole_files:
file_path, ctime = twole_files.pop(0) file_path, ctime = twole_files.pop(0)
result.append({ result.append({
"filename": file_path.name, "filename": [file_path.name],
"title": title1, "title": title1,
"url": url1, "url": url1,
"time": time1 "time": time1
@@ -271,7 +271,7 @@ def build_file_associations(
elif 'www.zxxk.com' in url1 and zxxk_files: elif 'www.zxxk.com' in url1 and zxxk_files:
file_path, ctime = zxxk_files.pop(0) file_path, ctime = zxxk_files.pop(0)
result.append({ result.append({
"filename": file_path.name, "filename": [file_path.name],
"title": title1, "title": title1,
"url": url1, "url": url1,
"time": time1 "time": time1
@@ -281,7 +281,7 @@ def build_file_associations(
if 'www.21cnjy.com' in url2 and twole_files: if 'www.21cnjy.com' in url2 and twole_files:
file_path, ctime = twole_files.pop(0) file_path, ctime = twole_files.pop(0)
result.append({ result.append({
"filename": file_path.name, "filename": [file_path.name],
"title": title2, "title": title2,
"url": url2, "url": url2,
"time": time2 "time": time2
@@ -289,7 +289,7 @@ def build_file_associations(
elif 'www.zxxk.com' in url2 and zxxk_files: elif 'www.zxxk.com' in url2 and zxxk_files:
file_path, ctime = zxxk_files.pop(0) file_path, ctime = zxxk_files.pop(0)
result.append({ result.append({
"filename": file_path.name, "filename": [file_path.name],
"title": title2, "title": title2,
"url": url2, "url": url2,
"time": time2 "time": time2