diff --git a/backend/app/routers/information.py b/backend/app/routers/information.py index ae3648e..5080795 100644 --- a/backend/app/routers/information.py +++ b/backend/app/routers/information.py @@ -1102,12 +1102,12 @@ def get_seek_stats( # 自有匹配成功:is_matched = 'confirmed' # 网络数据匹配成功:is_matched = 'pending_network'(表示网络数据已匹配) from sqlalchemy import func - self_matched = db.query(func.count(Information.f99_90_id)).filter( + self_matched = db.query(func.count(Information.id)).filter( Information.info_type == 'seek', Information.is_matched == 'confirmed' ).scalar() or 0 - network_matched = db.query(func.count(Information.f99_90_id)).filter( + network_matched = db.query(func.count(Information.id)).filter( Information.info_type == 'seek', Information.is_matched == 'pending_network' ).scalar() or 0