Commit 4681552d by 周田

mod

parent 170eb867
......@@ -46,10 +46,7 @@ def download(request):
file_path = os.path.join(settings.BASE_DIR, 'protocol_raw_files', protocol_name, version)
for root, _, files in os.walk(file_path):
for file in files:
# if file != 'xdc.sqlite':
# continue
file_path = os.path.join(root, files[3])
file_path = os.path.join(root, files[1])
# 适配中文
file_name = urllib.parse.quote(os.path.basename(file_path))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment