Skip to content

Commit

Permalink
why not
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Quinlivan committed Feb 9, 2019
1 parent 1dec992 commit 3d9266c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
3 changes: 0 additions & 3 deletions hello.py

This file was deleted.

19 changes: 16 additions & 3 deletions profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ def __str__(self):
return str(self.name)

def find_hated(self,profileList):
pass
hatred = 0
for profile in profileList:
hatred = 0
if (profileList[p].gender != self.genderPreference) or not(profileList[p].age.yours in self.age.preference) or (self.gender != profileList[p].genderPreference) or not (self.age.yours in profileList[p].age.preference) :
continue
for k in self.__dict__:
if k == "name" or k == "gender" or k == "genderPreference":
continue
elif k == "height" or k == "weight" or k == "age":
val = abs(self.__dict__[k].yours-profileList[p].__dict__[k].yours)**2/100
if val <= 5:
hatred += val
else:
hatred += 5
else:
if self.__dict__[k].yours != profileList[p].__dict__[k].yours:
hatred += 1

self.matchPercent.append(sum)

matchList.append(Oppositeness)
def find_opposite(self,profileList):

matchList = []
Expand Down

0 comments on commit 3d9266c

Please sign in to comment.