文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 264b5c1b by 李景熙

准确率显示

parent e5397fbd
let isTest = true
// let isTest = false
if (!isTest)
var baseURL = 'http://47.92.1.107/api'
else
var baseURL = 'http://localhost:9100/api'
var baseURL
if (!isTest) {
baseURL = 'http://47.92.1.107/api'
}
else {
baseURL = 'http://localhost:9100/api'
}
export {
baseURL
......
......@@ -71,11 +71,11 @@ def personnal_information(id):
if tmp.imagenum == 0:
imageAccuracy = 0
else:
imageAccuracy = float(tmp.imagecorrectnum)/float(tmp.imagenum) * 100
imageAccuracy = round(float(tmp.imagecorrectnum)/float(tmp.imagenum) * 100, 2)
if tmp.textnum == 0:
textAccuracy = 0
else:
textAccuracy = float(tmp.textcorrectnum)/float(tmp.textnum) * 100
textAccuracy = round(float(tmp.textcorrectnum)/float(tmp.textnum) * 100, 2)
data = {
'userName': tmp.userName,
'userId': tmp.usrId,
......
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