Example #1
0
    def __init__(self, name, age, bio, distance, image_urls):
        self.name = name
        self.age = age
        self.bio = bio
        self.distance = distance
        self.image_urls = image_urls

        # create a unique chatid for this person
        self.id = "{}{}_{}".format(name, age,
                                   StorageHelper.id_generator(size=4))
        self.images_by_hashes = []
Example #2
0
    def __init__(self, name, age, work, study, home, bio, distance, passions,
                 image_urls):
        self.name = name
        self.age = age
        self.work = work
        self.study = study
        self.home = home
        self.passions = passions
        self.bio = bio
        self.distance = distance
        self.image_urls = image_urls

        # create a unique id for this person
        self.id = "{}{}_{}".format(name, age,
                                   StorageHelper.id_generator(size=4))
        self.images_by_hashes = []