def loveRoom(rid, uid,rtype=1): if (rid == '1000'): return update_obj = {"roomId":rid} update_val = {'$push':{"reserve":uid}} BaseDao(db_tm.getCourseTable()).update(update_obj, update_val)
def __init__(self): self.dao = BaseDao(db_tm.getCourseTable())
def findLiveRoom(type_live,uid): result = BaseDao(db_tm.getCourseTable()).find({"status":{'$ne':2},"courseClass":type_live}) return result