修复 评价记录 bug

This commit is contained in:
王思川 2021-12-13 09:56:14 +08:00
parent a02d636728
commit 5d7316b1ee
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def rating_records_by_cid(cid):
records: 企业的评价记录
"""
records = find_rating_records({"企业ID": cid})
records = [record.pop('企业ID') if records is not None else None for record in records]
[record.pop('企业ID') if records is not None else None for record in records]
return records