Commit 348bc736 by dong

fix20230705

parent c9403243
......@@ -21,7 +21,7 @@ def global_region(industry_id, preference, key_words, district_name, page, per_p
if key_words:
carrier_obj = Induzone.query.filter(
and_(
Induzone.region.like('%{}%'.format(district_name)) if district_name else text(''),
Induzone.region.like('%{}%'.format(district_name)) if district_name != '晋城市' else text(''),
Induzone.id.in_([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
)).filter(
or_(
......@@ -50,7 +50,7 @@ def global_region(industry_id, preference, key_words, district_name, page, per_p
else:
carrier_obj = Induzone.query.filter(
and_(
Induzone.region.like('%{}%'.format(district_name)) if district_name else text(''),
Induzone.region.like('%{}%'.format(district_name)) if district_name != '晋城市' else text(''),
# Induzone.navigat.like('%{}%'.format(industry_name)) if industry_name else text(''),
Induzone.id.in_([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment