Пример #1
0
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)
Пример #2
0
 def __init__(self):
     self.dao = BaseDao(db_tm.getCourseTable())
Пример #3
0
def findLiveRoom(type_live,uid):
    result = BaseDao(db_tm.getCourseTable()).find({"status":{'$ne':2},"courseClass":type_live})
    return result