Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
rank
vest
Commits
773226ef
Commit
773226ef
authored
Jan 04, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日志
parent
511fd39d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
process_time.py
moment/views/process_time.py
+2
-1
No files found.
moment/views/process_time.py
View file @
773226ef
...
@@ -361,7 +361,6 @@ def judge_offset_partition_have_consum(card_info=None, offset=0, partition=0):
...
@@ -361,7 +361,6 @@ def judge_offset_partition_have_consum(card_info=None, offset=0, partition=0):
def
get_current_card_content_level
(
card_info
=
[]):
def
get_current_card_content_level
(
card_info
=
[]):
try
:
try
:
# 判断当前卡片的等级
# 判断当前卡片的等级
if
card_info
[
'card_status'
]
==
'answer'
:
if
card_info
[
'card_status'
]
==
'answer'
:
sql
=
'select level from api_answer where id =
%
s '
%
(
card_info
[
'card_id'
])
sql
=
'select level from api_answer where id =
%
s '
%
(
card_info
[
'card_id'
])
...
@@ -381,6 +380,8 @@ def get_current_card_content_level(card_info=[]):
...
@@ -381,6 +380,8 @@ def get_current_card_content_level(card_info=[]):
if
len
(
data
)
>
0
:
if
len
(
data
)
>
0
:
if
data
[
0
][
0
]:
if
data
[
0
][
0
]:
return
int
(
data
[
0
][
0
])
return
int
(
data
[
0
][
0
])
else
:
return
0
else
:
else
:
return
0
return
0
...
...
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