From 5b6ab791c986cefa1b355e13c34542997a714ec5 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 29 Oct 2024 19:08:51 +0800 Subject: [PATCH] . --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 0acc39d..40024aa 100644 --- a/app.py +++ b/app.py @@ -327,7 +327,7 @@ def search_by_email(): for domain, info in customer.items(): if 'email addresses' in info and isinstance(info['email addresses'], list): for email_record in info['email addresses']: - if email_record.get('email address') == email: + if email_record.get('email address').lower() == email: # 找到匹配的记录,跳转到对应的 index return redirect(url_for('view_customer', index=index)) @@ -345,7 +345,7 @@ def search_by_domain(): reload_buf(key, buf) # 遍历 customer_data 查找匹配的域名 for index, customer in enumerate(customer_data): - if domain in customer: + if domain.lower() in customer: # 找到匹配的域名,跳转到对应的 index return redirect(url_for('view_customer', index=index))