From dcc37800bf465862c2433dde869acdc5862a1a0e Mon Sep 17 00:00:00 2001 From: RainSun Date: Mon, 17 Feb 2020 12:41:47 +0800 Subject: [PATCH] add res_content --- lib/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db.py b/lib/db.py index c23ded4..ebd18e6 100644 --- a/lib/db.py +++ b/lib/db.py @@ -33,7 +33,7 @@ def addLAF(data, add_type): def getLost(): arr = [] try: - for i in col('lost').find({'close':'false'},{'title': 1, 'create_time':1, 'img_url':1, 'total_addr':1,'type':1}): + for i in col('lost').find({'close':'false'},{'title': 1, 'create_time':1, 'img_url':1, 'total_addr':1,'type':1,'content':1}): arr.append(i) except Exception as e: return {'errcode': 351, 'errmsg': 'lost表获取失败', 'errdetail': e} @@ -43,7 +43,7 @@ def getLost(): def getFound(): arr = [] try: - for i in col('found').find({'close':'false'},{'title': 1, 'create_time':1, 'img_url':1, 'total_addr':1,'type':1}): + for i in col('found').find({'close':'false'},{'title': 1, 'create_time':1, 'img_url':1, 'total_addr':1,'type':1, 'content':1}): arr.append(i) except Exception as e: return {'errcode': 352, 'errmsg': 'found表获取失败', 'errdetail': e}