def add_user_extension_dic(self, user_id): data = dict() data["user_id"] = user_id data["sex"] = OhhoRandom.get_sex() data["nickname"] = "宝宝" data["birthday"] = OhhoRandom.get_birthday() return data
def add_user_extension(self, user_id): data = dict() data["user_id"] = user_id data["sex"] = OhhoRandom.get_sex() data["birthday"] = OhhoRandom.get_birthday() data["interest"] = OhhoRandom.get_user_interest() self.user_extension.add(data)
def add_user_extension(self, user_id): data = dict() data["user_id"] = user_id data["sex"] = OhhoRandom.get_sex() # data["identity_card"] = identity_card # data["real_name"] = "" data["nickname"] = "宝宝" data["birthday"] = OhhoRandom.get_birthday() self.user_extension.add(data)
def add_match_condition(self): data = dict() data["sex"] = OhhoRandom.get_sex() data["small_age"] = 0 data["big_age"] = 150 data["interest"] = OhhoRandom.get_user_match_interest() self.match_condition.add(data) query = self.match_condition.get_query() query = self.match_condition.order_by_id_desc(query) obj = Operation.first(query) return obj.id
def add_user_extension(self, user_id): data = dict() data["user_id"] = user_id data["sex"] = OhhoRandom.get_sex() # data["identity_card"] = identity_card # data["real_name"] = "" data["nickname"] = "宝宝" data["birthday"] = OhhoRandom.get_birthday() # data["height"] = OhhoRandom.get_height() # data["hometown"] = OhhoRandom.get_hometown() # data["school"] = OhhoRandom.get_school() # data["company"] = OhhoRandom.get_company() # data["degree_id"] = OhhoRandom.get_degree_id() # data["favourite_live_city"] = OhhoRandom.get_favourite_live_city() # data["occupation_id"] = OhhoRandom.get_occupation_id() # data["position_id"] = OhhoRandom.get_position_id() self.user_extension.add(data)