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 |
The commented implementation is likely incorrect; ensure that you calculate the score accurately, evaluate performance, and add multiple tests to validate the score.
federatedcode/fedcode/models.py
Lines 389 to 397 in f49f5e5