This commit is contained in:
parent
fba57ff22d
commit
5b6ab791c9
4
app.py
4
app.py
|
|
@ -327,7 +327,7 @@ def search_by_email():
|
||||||
for domain, info in customer.items():
|
for domain, info in customer.items():
|
||||||
if 'email addresses' in info and isinstance(info['email addresses'], list):
|
if 'email addresses' in info and isinstance(info['email addresses'], list):
|
||||||
for email_record in info['email addresses']:
|
for email_record in info['email addresses']:
|
||||||
if email_record.get('email address') == email:
|
if email_record.get('email address').lower() == email:
|
||||||
# 找到匹配的记录,跳转到对应的 index
|
# 找到匹配的记录,跳转到对应的 index
|
||||||
return redirect(url_for('view_customer', index=index))
|
return redirect(url_for('view_customer', index=index))
|
||||||
|
|
||||||
|
|
@ -345,7 +345,7 @@ def search_by_domain():
|
||||||
reload_buf(key, buf)
|
reload_buf(key, buf)
|
||||||
# 遍历 customer_data 查找匹配的域名
|
# 遍历 customer_data 查找匹配的域名
|
||||||
for index, customer in enumerate(customer_data):
|
for index, customer in enumerate(customer_data):
|
||||||
if domain in customer:
|
if domain.lower() in customer:
|
||||||
# 找到匹配的域名,跳转到对应的 index
|
# 找到匹配的域名,跳转到对应的 index
|
||||||
return redirect(url_for('view_customer', index=index))
|
return redirect(url_for('view_customer', index=index))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue