Skip to content

Instantly share code, notes, and snippets.

@mford22392
Last active April 2, 2020 14:51
Show Gist options
  • Save mford22392/afa015841f8f9ebd91072ad39ce5ea43 to your computer and use it in GitHub Desktop.
Save mford22392/afa015841f8f9ebd91072ad39ce5ea43 to your computer and use it in GitHub Desktop.
def reimbursement_weights(self):
return {
"reimbursement": 80,
"contact": 70,
"coach_recommendations": 60 if self.coach_recommendations else 0,
"bookmarks": 50 if self.bookmarks else 0,
"quiz_recommendations": 40 if self.quiz_results else 0,
"quiz": 0
}
# Influencer Question #4
def unsure_weights(self):
return {
"coach_recommendations": 80 if self.coach_recommendations else 0,
"bookmarks": 70 if self.bookmarks else 0,
"quiz_recommendations": 60 if self.quiz_results else 0,
"contact": 50,
"quiz": 0 if (self.quiz_results or self.catalog_error) else 40,
"reimbursement": 30
}
# Influencer Question #1-3
def default_weights(self):
return {
"coach_recommendations": 80 if self.coach_recommendations else 0,
"bookmarks": 70 if self.bookmarks else 0,
"quiz_recommendations": 60 if self.quiz_results else 0,
"quiz": 0 if (self.quiz_results or self.catalog_error) else 50,
"contact": 40,
"reimbursement": 30
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment