Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
inspect_report
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Open sidebar
zhengjinlei
inspect_report
Commits
5bd64cf4
Commit
5bd64cf4
authored
Jun 08, 2020
by
zhengjinlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改时区
parent
a0dc1188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
report_utils.py
src/inspect_report/utils/report_utils.py
+4
-4
No files found.
src/inspect_report/utils/report_utils.py
View file @
5bd64cf4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# @File : report_utils.py
# @File : report_utils.py
import
json
import
json
import
logging
import
logging
from
datetime
import
datetime
from
datetime
import
datetime
,
timedelta
from
django.db.models
import
Sum
from
django.db.models
import
Sum
...
@@ -184,9 +184,9 @@ def single_score_stat(t, create_date, stat_count=0):
...
@@ -184,9 +184,9 @@ def single_score_stat(t, create_date, stat_count=0):
def
re_stat_by_task
(
task
):
def
re_stat_by_task
(
task
):
single_rules_stat
(
task
,
task
[
'createdAt'
],
0
)
single_rules_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
)
,
0
)
single_seat_stat
(
task
,
task
[
'createdAt'
],
0
)
single_seat_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
)
,
0
)
single_score_stat
(
task
,
task
[
'createdAt'
],
0
)
single_score_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
)
,
0
)
def
delete_stat_by_task
(
task
):
def
delete_stat_by_task
(
task
):
...
...
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