only return active number

This commit is contained in:
Son 2022-01-04 16:26:38 +01:00
parent 4ac8da1e8f
commit 2ed7c5fcdb
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ def index():
.filter(
PhoneNumber.country_id == country.id,
PhoneNumber.id.notin_(busy_phone_number_subquery),
PhoneNumber.active,
)
.first()
)