Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
264b5c1b
Commit
264b5c1b
authored
Sep 25, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
准确率显示
parent
e5397fbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
env.js
DAPlatform-front/src/assets/js/env.js
+7
-4
User.py
DAPlatform/dao/User.py
+2
-2
No files found.
DAPlatform-front/src/assets/js/env.js
View file @
264b5c1b
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
...
...
DAPlatform/dao/User.py
View file @
264b5c1b
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment