feature: tweak if statement
This commit is contained in:
parent
3a8d727e1a
commit
1b193f7210
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue