Skip to content

Commit

Permalink
replace key with k
Browse files Browse the repository at this point in the history
  • Loading branch information
njames741 committed Nov 2, 2020
1 parent 94e3b8c commit 787aef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verdict_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def countup(fs, ans_file = 'db_ans_data', predict_file = 'predict.json'):
with open(ans_file + '/' + pred_defendant['content_id'] + '.json', 'r', encoding = 'utf-8') as f:
ans = json.loads(f.read())

for key, value in pred_defendant.items():
if key == 'content_id':
verdict_list.append(value)
for k, v in pred_defendant.items():
if k == 'content_id':
verdict_list.append(v)

for ans_defendant in ans:
if ans_defendant['name'] == pred_defendant['name']:
Expand Down

0 comments on commit 787aef2

Please sign in to comment.