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
d743d72c
Commit
d743d72c
authored
Jul 22, 2020
by
zhengjinlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务
parent
8c2b0b3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
cron.py
src/inspect_report/cron.py
+1
-1
report_utils.py
src/inspect_report/utils/report_utils.py
+4
-3
No files found.
src/inspect_report/cron.py
View file @
d743d72c
...
...
@@ -80,7 +80,7 @@ def score_stat(date_str=None):
@
kronos
.
register
(
'30 6 * * *'
)
def
data_stat
(
date_str
=
None
):
"""
坐席
得分
统计
坐席
数据
统计
:return:
"""
if
not
date_str
:
...
...
src/inspect_report/utils/report_utils.py
View file @
d743d72c
...
...
@@ -191,9 +191,10 @@ def single_score_stat(t, create_date, stat_count=0):
def
re_stat_by_task
(
task
):
single_rules_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
),
0
)
single_seat_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
),
0
)
single_score_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
),
0
)
# single_rules_stat(task, task['createdAt'] + timedelta(hours=8), 0)
# single_seat_stat(task, task['createdAt'] + timedelta(hours=8), 0)
# single_score_stat(task, task['createdAt'] + timedelta(hours=8), 0)
single_data_stat
(
task
,
task
[
'createdAt'
]
+
timedelta
(
hours
=
8
),
0
)
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