コード例 #1
0
    def mutate(root,info,input=None):

        interest=Interest(
            category_id=input.category_id,
            category_name=input.category_name
        )
        interest.save()
        return AddInterest(interest=interest)
コード例 #2
0
    def save_to_graph(self, photos):
        """
        parameters
        ----------
        photos: array - see the return of retrieve_photos_from_flickr() for the structure
        """

        self.stdout.write("* Saving photos information in the graph", ending='\r')

        # list of tags from all photos without duplicates (several photos may have the same tag)
        # used to cache the Interest objects and create the nodes if they don't exist
        # while reducing the number of queries on the database
        interests = {}

        index = 1
        for photo in photos:
            url = photo['url']

            try:
                picture = Picture(pictureURL=url)
                picture.save()
            except UniqueProperty:
                # a picture node with this url already exists in the graph
                # we will only update the interests it is RELATED_TO
                picture = Picture.nodes.get(pictureURL=url)

            for tag in photo['tags']:
                if tag == self.SEARCH_TAG:
                    # we don't add the 'couple' tag to the database because of course our app is about couples
                    continue

                # if the tag hasn't been added yet to the list of interests
                if tag not in interests:
                    try:
                        interest = Interest(label=tag)
                        interest.save()
                    except UniqueProperty:
                        # an interest node with this label already exists in the graph
                        interest = Interest.nodes.get(label=tag)

                    interests[tag] = interest
                else:
                    # the interest is already in the list, get it and avoid a useless query to the db
                    interest = interests[tag]

                picture.tags.connect(interest)

            self.stdout.write('* Photos saved: {}                         '.format(index),
                              ending='\r')

            index += 1

        self.stdout.write('')
コード例 #3
0
ファイル: manage.py プロジェクト: Osadchuk-M/Common-Interests
def bootstrap():
    """ Create database with fake data """
    db.create_all()
    os.environ['ADMIN_EMAIL'] = '*****@*****.**'
    os.environ['ADMIN_PASSWORD'] = '******'
    admin = User(email='*****@*****.**',
                 username='******',
                 password='******')
    admin.gravatar()
    db.session.commit()
    db.session.add(admin)
    User._bootstrap()
    Interest._bootstrap()
コード例 #4
0
def update_profile():
    form = UpdateAccountForm()
    # generates list of all interests and skills of the user
    present_interest = Interest.query.filter(
        Interest.users.any(username=current_user.username)).all()
    present_skill = Skill.query.filter(
        Skill.users.any(username=current_user.username)).all()
    if form.validate_on_submit():
        if form.resume.data:  # If user uploads their resume
            pic_file = save_pic(form.resume.data, 'static/resume')
            current_user.resume = pic_file
        if form.profile_picture.data:  # If user uploads their profile picture
            pic_file_ = save_pic(form.profile_picture.data,
                                 'static/profileimages')
            current_user.profile_picture = pic_file_
        current_user.username = form.username.data
        current_user.email = form.email.data
        current_user.fname = form.fname.data
        current_user.lname = form.lname.data
        current_user.phone_number = form.phone.data
        current_user.is_super_admin = form.is_admin.data
        current_user.is_actively_interviewing = form.is_actively_interviewing.data
        current_user.is_recruiter = form.is_recruiter.data
        current_user.facebook_link = form.facebook_link.data
        current_user.twitter_link = form.twitter_link.data
        current_user.linkedin_link = form.linkedin_link.data
        current_user.salary_expt = form.salary.data
        current_user.address = form.address.data
        skill = form.skills.data
        skills = {
            1: 'C++',
            2: 'Python',
            3: 'JavaScript',
            4: 'Java',
            5: 'React',
            6: 'Golang',
            7: 'Rust'
        }
        interest = form.interests.data
        interests = {
            1: 'Product Design',
            2: 'UI/UX',
            3: 'Software Development',
            4: 'Artificial Intelligence',
            5: 'Data Science',
            6: 'Game Development',
            7: 'Cyber Security'
        }
        if skill:
            for skl in present_skill:
                db.session.delete(skl)
            for choice in skill:
                current_user.skills.append(Skill(name=skills[choice]))
        if interest:
            for skl in present_interest:
                db.session.delete(skl)
            for choice in interest:
                current_user.interests.append(Interest(name=interests[choice]))
        db.session.commit()

        flash('Your account has been updated', 'success')
        return redirect(url_for('profile'))
    form.username.data = current_user.username
    form.email.data = current_user.email
    form.fname.data = current_user.fname
    form.lname.data = current_user.lname
    form.phone.data = current_user.phone_number
    if form.phone.data == None:
        form.phone.data = '+2340000000000'
    form.address.data = current_user.address
    form.is_admin.data = current_user.is_super_admin
    form.is_actively_interviewing.data = current_user.is_actively_interviewing
    form.is_recruiter.data = current_user.is_recruiter
    form.facebook_link.data = current_user.facebook_link
    form.twitter_link.data = current_user.twitter_link
    form.interests.data = present_interest
    form.skills.data = present_skill
    form.linkedin_link.data = current_user.linkedin_link
    form.salary.data = current_user.salary_expt
    return render_template('updateprofile.html',
                           title='Update Account',
                           form=form)
コード例 #5
0
ファイル: routes.py プロジェクト: anoopkarnik/SNFE
def populateInterests():
    interest1 = Interest(
        Title="Science",
        ImageSource=
        "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEBIQEBAVFRIXDQ0ODQ0ODg8VDRANIBEWFiARHxUkHCggJCYlJx8TITEhJSkrLi4uFx8zODMsNygtLisBCgoKDQ0ODg4NDjcZFRkrKy0rLTcrNy0tKysrLisrLS0rNystLSsrNys3LS03KysrLSsrLSs3KzcrKysrKysrLf/AABEIAJYAZAMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAAAQIDBgcFBAj/xAA2EAACAgEDAgQEBQIFBQAAAAABAgARAwQSIQUxBgcTQSIyUWEUcYGR8KGxFSNCUvEzYmSC0f/EABkBAQEBAAMAAAAAAAAAAAAAAAABAgMEBf/EACARAQEAAgICAgMAAAAAAAAAAAABAhEhMQNBBFESInH/2gAMAwEAAhEDEQA/AMNhCEAiwEIBCo4CKRAZUAP+I/bFxjn/ANSf6QIoRahASEIQCEIQCEIQFEcBEAj1EBQJ7emdMzanIMWDGXciwoHAUdySeAB7k8Sbw/oBqNTiwsaVnpiO+0Ak196FfrNeXoydP0Gp1GnXa94STSncocDaQQQe5PII96vkTK6lv01JtTcflRrim45cANWEORif3AqVfrnh/UaJympxlCRSMCGxuLFlXHB/LuPpNaT8e+g/HnVUA1emCwv4q7XVe1cSDpGm/wAX0WoTVd1z41V0VQQdlhxY4PBBPuDzc63i+VPJlcZOm8sNTbEmEbUuHjjwovTziKZGdX3j41AKsKNWODYP9JU2Wdpx2aRxI4iNhBCEIBFAgIoEBwEkURqiejT4WdgqKWYsqqihi7MeAoA5JP0EqrH5dYwdchbsuPI5IDGuABwPua/WbH14D/C9Up4BwXiDHllV0ugee4qc7y28CtgwXm/y875VyZl4ZxhA+BAQaBsknvzxLi/h/Hj3Fwc2NgpfE6o44HzAEdx9uZnPG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0rXHBmTKo+VrK+zIeCp/MEibv0freTNgBAKoEvflDeps2ghrHBFWL79uJaY/THPHOly4tdnTKwZtysrDscZW1FWaIFAj2IMrxM7njLM763MchFh2Va3Vs7jvzZBvn6zhsJYzezLjgYmyLthBcIVCAwfzmOA/lQEdAAv8qAEUD+ERa/ggaz5d67FptHtfKwZicm3Y3pqDVAEDknuSfsBxOJ5jeJV1SjCMYBGS1dMinGwHdyK4PsPsTK3g68yoE2jhQAQzAcCrIqczNlLsWPf+01lMdSztjDLPdmXSIJNt8H+KNM+nAFYQpRVV33ZCoHzXR7EHiqmK3Pb03qTYDwLF2VJqm+oMmMlv7NZXKTePbveZao+s9bHl3h05pFRlI4o0BfB4J5oUe0qNT3dU6gc5B21W6husm54ZcpJdRMblZvIhjajjGzLRtQjq/lRICCOuJCAXHCEICgxbhCAtwuEICGITCEBIkIQohCED//Z"
    )
    interest2 = Interest(
        Title="Books",
        ImageSource=
        "https://i.pinimg.com/736x/18/fc/c3/18fcc378c67c941f028dd37008df24fe--redd-foxx-funny-people.jpg"
    )
    interest3 = Interest(
        Title="Photography",
        ImageSource=
        "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQsiViwtNmqi1XuSE96XbIdHxbKG1uphIWBsk-8d-1MNTrKQSniMQ"
    )
    interest4 = Interest(
        Title="Technology",
        ImageSource="http://files.abovetopsecret.com/files/img/to56cb7f32.jpg")
    interest5 = Interest(
        Title="Education",
        ImageSource=
        "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEBUQDxAWEBAVEBUVFRUVEA8VFRAQFRUWFhUVFRUYHSggGBolHRUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQGi0iHSUuLS0tLS0tLS0tLS0tNjEuLS0rLS0tLS0tKy0tKy0tLS8rLS0tLS0vLS0tLS0tLS0tLf/AABEIALcBEwMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAACAAEDBAUGB//EAEoQA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HotiN3X4bcN80uv+RGzonPuEuH03jrJb/gWVHwabG2M/NOGk783wv8F0H7Pbe5Zmyuj+IilbK6SAgEHsySEkbjpl5FdT1kd11rPV4/6V4ThK9ke0JpLczW4FnJTswDeXwV1sjBr1jPvO/0o2TsN1INP/U93Z1WOXPsb5ke5UbgGcvgpW4Bv6pWQ9un8o3Xvk8/mqZ0sbd8zeHCQ7+emicqfYnMj3K8eAZy+CkbgmqwyaPhM0+GY/giEjPrR5MkPwanKl2HMXcjjwjF5ttJpbNI07xK8Hv7R1XpzsTEP6UV9l/4tXM9INiMml62KdjC5gLg7P2ngaHQaWK9F08OnBu0cvE/GlRx1pls/wDLj/r4PvT/AP5pl16kcfLl2OX608P0U4eeen67kkl5HSLOTx95TC/f4fDVJJUDiTXefLQ+pUgdpZ3c9b9d5SSQEBcCdLOnMcu+0TXGzR3cx8CPBJJUE8Dhu1314Hy3qbLY3/iN3JJJARuscdL+k7f4J2yHg7/M/RMkgCbOfpe96Xyn988PnPSSQBNnNb/15outPP4WnSQAtJ4DWuFAnxRxyuob6vur470kkATnP4ij5IdeI/LvG9JJANRPDW70r9V3JwCN+t/AeZCZJAGHa6abq0Fb0ecngb/saeu5JJAE55FWT3A17wNPemzg1VjXkPzSSUA7pddd/M/9kwmG+yOHdv8ABOkoUczEah7h5tPh81P15ui4n0/AJJKgJuIPHQ8xroidjHaWb9bHgkkgJRj3DXNu/XJCcYTvdoO4fkmSQgjjP3v8jSkkkqD/2Q=="
    )
    interest6 = Interest(
        Title="Cloud Computing",
        ImageSource=
        "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTg9empmm9j40YUfl-44iaPC7637Gv-r-5Uh8DmJy1gXfcdJcTG"
    )
    interest7 = Interest(
        Title="Movies",
        ImageSource=
        "https://images.pexels.com/photos/390089/film-movie-motion-picture-390089.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest8 = Interest(
        Title="Health",
        ImageSource=
        "https://images.pexels.com/photos/235922/pexels-photo-235922.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest9 = Interest(
        Title="Business",
        ImageSource=
        "https://images.pexels.com/photos/872957/pexels-photo-872957.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest10 = Interest(
        Title="Cooking",
        ImageSource=
        "https://images.pexels.com/photos/277253/pexels-photo-277253.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest11 = Interest(
        Title="Big Data",
        ImageSource=
        "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQNOE77gmOh5uxrsPxQNG3HJdQOPLXlXNb8iDYKHdrI2eA1OwGLXA"
    )
    interest12 = Interest(
        Title="Angular Js",
        ImageSource=
        "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw8NDw8NDw0PDQ0NDw0NDQ8NEBAPEA0NFREWFhURFRcYICogGBolHRUVITEiJykrLi4uFyA1ODMuNygtLisBCgoKDg0OGBAQGy0fHSUtLi0tMC0tLy0tLSstLS0tKy0tKystLSstLS0tLS0tLS0tLS0rLSsrKy0tLSsrLSsrLf/AABEIAMIBAwMBEQACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAACAQQDBQYAB//EAEEQAAICAQEDCQUGAwUJAAAAAAABAgMRBAUSIQYTMTJBUYGRsSJSYXHBFCNCYqHRcoKSB1Oi4vEXM0Njc8LS4fD/xAAbAQEBAAMBAQEAAAAAAAAAAAAAAQIDBAUGB//EADURAAIBAgQDBgUCBwEBAAAAAAABAgMRBBIhMQVBURMiYXGBkaGxwdHwMuEUFSNCUnLxkjP/2gAMAwEAAhEDEQA/AOPR4J+gDQKJADQAkANIFEiASAEkANIASRASkCkpAE4AJwATgA9gAjAB7ABGACMABaBAtFAWgAsALAC0ABlAWCAYAWABgFijqrx9TYtjVLcro1m0aAEgBoASBRogEgBoASQAkiASQKJIAlIAnABOACcAHsAEYAPYAIwAFoAhoALQIFooC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WZRV/z2MZYNyp9lKo3HktPS752NZqtqOdUKI1xrrqsusglKUmlZurdy+LxudPxNUmnFRSskdUIyjNzbu2kn6X6eZZo27WowVuz9NfOqMYwszbVvJLC52MXix8O3pMlKNleKf5z6muVOpduNRpPlo/ZvVEV8o5uy6y+mrUrUuDuhbHhmKai4NYcGk2k12Ezu7crO+/5yMnQjkjGDccuzT673vvfcnUbfr5qdGn0sNHXdu881Oy6y1J5UN+byo57F+4c+64xVr78/ixCj31OrNza20SS8bLn4mq52PearM7MyI3l3kLdEMADKAMALAAwAMpAMALALFPVXj6mcdjXLc1hTUJADQAkCiRAJACQA0AJAokyASAJRQJMgJyASgCcgHsgEZAPZAC2AQ2UBZAQwAMoI3mu0C7I5x95LIuZnuefwGVFzsjn/gTKXtCHcu5jKXtERzqFmXOgua70SzLmRDYKWKeqvH1M1sa5bmsKahIAaAECiQAkQCQAkAJACTBRIgEmASUE5AJyATkgPZAPZAIyUEZAC2QEABbKAsECwAsALKAsALACwAMECwCzQ/ZXHv9TJbGuTdyqYmwlADQAkCiQAkAJACRAJACQAkwUSZATkAkA9koJyAeyAeyAQQEZAIAC2AQ2UBYIFgBYAWAFlAQAsEAwAsAs0dVePqZrY1S3KpgbXuJACQAkAIFEgBIgEgBIASYBKAEmCkpkBIBOQD2QD2QD2QCAD2QAtlBDYAWCBYBDACwAsoCwAsALBAMALALVHVXj6ma2NUtyqYG1koASAGgBAokQokCEoFEgQSIUlACRQSgCUQCAPAEEBJQQAeKAgEMAggCUBZQQyADKAgEAgGQBZQGQIWaOqvH1M1sa5bn/9k="
    )
    interest13 = Interest(
        Title="Food",
        ImageSource=
        "https://images.pexels.com/photos/5317/food-salad-restaurant-person.jpg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest14 = Interest(
        Title="Money",
        ImageSource=
        "https://images.pexels.com/photos/47344/dollar-currency-money-us-dollar-47344.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest15 = Interest(
        Title="Adventure",
        ImageSource=
        "https://images.pexels.com/photos/6758/wildernessculture-rei1440project-welltravelled-awesomeearth.jpg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest16 = Interest(
        Title="Design",
        ImageSource=
        "https://images.pexels.com/photos/5836/yellow-metal-design-decoration.jpg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    interest17 = Interest(
        Title="Sports",
        ImageSource=
        "https://images.pexels.com/photos/207710/pexels-photo-207710.jpeg?auto=compress&cs=tinysrgb&h=350"
    )
    interest18 = Interest(
        Title="Shopping",
        ImageSource=
        "https://images.pexels.com/photos/972804/pexels-photo-972804.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
    )
    db.session.add(interest1)
    db.session.add(interest2)
    db.session.add(interest3)
    db.session.add(interest4)
    db.session.add(interest5)
    db.session.add(interest6)
    db.session.add(interest7)
    db.session.add(interest8)
    db.session.add(interest9)
    db.session.add(interest10)
    db.session.add(interest11)
    db.session.add(interest12)
    db.session.add(interest13)
    db.session.add(interest14)
    db.session.add(interest15)
    db.session.add(interest16)
    db.session.add(interest17)
    db.session.add(interest18)
    db.session.commit()
コード例 #6
0
 def parse_interests():
     return [Interest(label=option.get('label'), category=interest.get('category'))
             for interest in interests for option in interest.get('options')]