feature: tweak if statement

This commit is contained in:
ievgenii vdovenko 2025-11-15 17:24:17 +01:00
parent 3a8d727e1a
commit 1b193f7210

View file

@ -70,7 +70,7 @@ class UserQuotaModel:
return True
if self._user_quotas_valid():
if self.user_max_repository_count_allowance is self.UNLIMITED:
if self.user_max_repository_count_allowance == self.UNLIMITED:
# since DB can't save float('inf'), we need to use a special case
return True