Skip to content

Commit

Permalink
feat: 字段分析去重下载 #1010158081121930426
Browse files Browse the repository at this point in the history
  • Loading branch information
zzz833708 committed Feb 14, 2025
1 parent fc7bbaa commit 6068002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bklog/apps/log_search/views/field_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def fetch_value_list(self, request, *args, **kwargs):

output = StringIO()
for item in value_list:
output.write(f"{item[0]},{item[1]},{item[2]}\n")
output.write(f"{item[0]},{item[1]},{item[2]*100:.2f}%\n")
response = HttpResponse(output.getvalue())
response["Content-Type"] = "application/x-msdownload"
field_name = params["agg_field"]
Expand Down

0 comments on commit 6068002

Please sign in to comment.