This commit is contained in:
guange 2019-01-23 15:45:58 +08:00
parent 83868a3541
commit 48dd0711b0
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ def proxys(request):
datas = []
for proxy in _proxys:
datas.append(
{"ip": proxy.ip, "port": proxy.port, "delay": proxy.checktime, "check_time": proxy.created_at}
{"ip": proxy.ip, "port": proxy.port, "delay": proxy.checktime,
"check_time": proxy.created_at.strftime('%Y-%m-%d %H:%M:%S')}
)
return _render_json(datas)