This commit is contained in:
hailin 2024-10-29 19:08:51 +08:00
parent fba57ff22d
commit 5b6ab791c9
1 changed files with 2 additions and 2 deletions

4
app.py
View File

@ -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))