Skip to content

Commit

Permalink
Update view.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SiJiDo authored Nov 26, 2021
1 parent 5e8a6f4 commit ec90fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/home/target/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def ipinfo(DynamicModel = Target, DynamicFrom = TargetForm):
id = request.args.get('id')
results = ip_addr(id)
content = []
target = DynamicModel.query.order_by(DynamicModel.id).first().target_name
target = DynamicModel.query.filter(DynamicModel.id == id).first().target_name
for result in results:
dic = {}
dic['ip'] = result[0] + '.0/24'
Expand Down Expand Up @@ -440,4 +440,4 @@ def targetedit(DynamicModel = Target, DynamicFrom = TargetForm):
def export():
id = request.args.get('id')
output_excel(id)
return send_from_directory(r"/tmp",filename="h_output.xls",as_attachment=True)
return send_from_directory(r"/tmp",filename="h_output.xls",as_attachment=True)

0 comments on commit ec90fa2

Please sign in to comment.