diff --git a/domain_admin/api/issue_certificate_api.py b/domain_admin/api/issue_certificate_api.py index 9252927a2a..0ddb614ebb 100644 --- a/domain_admin/api/issue_certificate_api.py +++ b/domain_admin/api/issue_certificate_api.py @@ -199,7 +199,7 @@ def get_certificate_list(): ) if keyword: - query.where(IssueCertificateModel.domain_raw.contains(keyword)) + query = query.where(IssueCertificateModel.domain_raw.contains(keyword)) total = query.count()