Skip to content

Commit

Permalink
修复日志乱码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Aug 24, 2024
1 parent 5c96b91 commit 3f5d3e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spider_admin_pro/api/scrapyd_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# scrapyd 接口服务
# ==============================================

from flask import request
from flask import request, Response

from spider_admin_pro.model import ScrapydServerModel
from spider_admin_pro.utils.flask_ext.flask_app import BlueprintAppApi
Expand Down Expand Up @@ -209,4 +209,5 @@ def job_log():

client = get_client(scrapyd_server_row)

return client.job_log(project=project, spider=spider, job=job)
res = client.job_log(project=project, spider=spider, job=job)
return Response(res, content_type='text/plain;charset=utf-8')

0 comments on commit 3f5d3e9

Please sign in to comment.