Commit 0b5edd7c by dong

fix

parent ac655ff5
...@@ -105,13 +105,13 @@ def menu(): ...@@ -105,13 +105,13 @@ def menu():
if not district or district == '满城区': if not district or district == '满城区':
try: try:
company = Company.query.filter_by(city="满城区") company = Company.query.filter_by(district="满城区")
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="数据库错误") return jsonify(code=RET.DBERR, msg="数据库错误")
else: else:
try: try:
company = Company.query.filter(Company.district == district, Company.city == "晋城市") company = Company.query.filter(Company.district == district, Company.city == "保定市")
except Exception as e: except Exception as e:
current_app.logger.error(e) current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="数据库错误") return jsonify(code=RET.DBERR, msg="数据库错误")
......
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