From 2ed7c5fcdb5b87d9d84fc3a69e6a12fad8d43202 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 4 Jan 2022 16:26:38 +0100 Subject: [PATCH] only return active number --- app/phone/views/index.py | 1 + 1 file changed, 1 insertion(+) 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() )