diff --git a/app/phone/views/index.py b/app/phone/views/index.py index 440663e8..ed06948e 100644 --- a/app/phone/views/index.py +++ b/app/phone/views/index.py @@ -61,6 +61,7 @@ def index(): .filter( PhoneNumber.country_id == country.id, PhoneNumber.id.notin_(busy_phone_number_subquery), + PhoneNumber.active, ) .first() )