vlff李飞飞 commited on
Commit
a1a2868
1 Parent(s): 2b56a6b
Files changed (1) hide show
  1. qwen_server/utils.py +1 -1
qwen_server/utils.py CHANGED
@@ -78,7 +78,7 @@ def extract_and_cache_document(data, cache_file, cache_root, access_token):
78
  lines = []
79
  if os.path.exists(cache_file):
80
  for line in jsonlines.open(cache_file):
81
- if line['url'] != data['url']:
82
  lines.append(line)
83
  with jsonlines.open(cache_file, mode='w') as writer:
84
  for new_line in lines:
 
78
  lines = []
79
  if os.path.exists(cache_file):
80
  for line in jsonlines.open(cache_file):
81
+ if line['access_token'] == access_token and line['url'] != data['url']:
82
  lines.append(line)
83
  with jsonlines.open(cache_file, mode='w') as writer:
84
  for new_line in lines: