Qilan2 commited on
Commit
3c74812
·
verified ·
1 Parent(s): 0ac116c

Update sbx/b.py

Browse files
Files changed (1) hide show
  1. sbx/b.py +2 -2
sbx/b.py CHANGED
@@ -30,9 +30,9 @@ def get_log_content():
30
  # 读取文件内容
31
  with open(file_path, 'r', encoding='utf-8') as file:
32
  content = file.read()
33
-
34
  # return jsonify({"content": content})
35
- return content
36
 
37
  except PermissionError:
38
  return jsonify({"error": "Permission denied to read the file"}), 403
 
30
  # 读取文件内容
31
  with open(file_path, 'r', encoding='utf-8') as file:
32
  content = file.read()
33
+ decoded_content = urllib.parse.unquote(content)
34
  # return jsonify({"content": content})
35
+ return decoded_content
36
 
37
  except PermissionError:
38
  return jsonify({"error": "Permission denied to read the file"}), 403