错误管道必须在python mongo db的聚合函数中包含一个字段

时间:2019-12-17 07:07:51

标签: python mongodb

   booking_count = DB.find_using_aggregrat(tbl_u002_booking,
    [{"$match":{"insert_date":{"$gte": str(dateutil.parser.parse(e)),
        "$lte":str(dateutil.parser.parse(d))}},
        "spa.outlet_id":{"$eq":str(outlet_id)}},
        {"$count":"booking"}])

0 个答案:

没有答案
相关问题