Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the person's reputation score value #25

Open
ziadhany opened this issue Oct 14, 2024 · 0 comments
Open

Correct the person's reputation score value #25

ziadhany opened this issue Oct 14, 2024 · 0 comments

Comments

@ziadhany
Copy link
Collaborator

The commented implementation is likely incorrect; ensure that you calculate the score accurately, evaluate performance, and add multiple tests to validate the score.

@property
def reputation_value(self):
"""if someone like your ( review or note ) you will get +1, dislike: -1"""
# user_reputation = Reputation.objects.filter(voter=self.acct)
# return (
# user_reputation.filter(positive=True).count()
# - user_reputation.filter(positive=False).count()
# )
return 0 # FIXME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant