From 9da6bbe3bf6ca168158df5a300cd2ec2b060104e Mon Sep 17 00:00:00 2001 From: Pooya Fekri Date: Sun, 22 Sep 2024 00:03:36 +0330 Subject: [PATCH] Fix gitcoinPassport problem --- authentication/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentication/models.py b/authentication/models.py index 0d1f5af..2dcb694 100644 --- a/authentication/models.py +++ b/authentication/models.py @@ -233,8 +233,8 @@ class GitcoinPassportConnection(BaseThirdPartyConnection): @property def score(self): - score_tuple = self.driver.get_score(self.user_wallet_address) - return score_tuple[0] if score_tuple else 0.0 + _score = self.driver.submit_passport(self.user_wallet_address) + return _score @receiver(pre_save, sender=GitcoinPassportConnection)