From be24112d53a8eb37cad32be6b802b5cf5bf1d9d4 Mon Sep 17 00:00:00 2001 From: Pooya Fekri Date: Sun, 22 Sep 2024 00:11:23 +0330 Subject: [PATCH] Return only str in score property --- authentication/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication/models.py b/authentication/models.py index 2dcb694..11e79a2 100644 --- a/authentication/models.py +++ b/authentication/models.py @@ -234,7 +234,7 @@ class GitcoinPassportConnection(BaseThirdPartyConnection): @property def score(self): _score = self.driver.submit_passport(self.user_wallet_address) - return _score + return _score if _score is not None else 0 @receiver(pre_save, sender=GitcoinPassportConnection)