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
298095ef
Commit
298095ef
authored
Jan 03, 2020
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
14f82032
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
process_time.py
moment/views/process_time.py
+3
-1
No files found.
moment/views/process_time.py
View file @
298095ef
...
@@ -375,9 +375,11 @@ def get_current_card_content_level(card_info=[]):
...
@@ -375,9 +375,11 @@ def get_current_card_content_level(card_info=[]):
sql
=
'select content_level from api_diary where id =
%
s '
%
(
card_info
[
'card_id'
])
sql
=
'select content_level from api_diary where id =
%
s '
%
(
card_info
[
'card_id'
])
zhengxing_cursor
.
execute
(
sql
)
zhengxing_cursor
.
execute
(
sql
)
data
=
list
(
zhengxing_cursor
.
fetchall
())
data
=
list
(
zhengxing_cursor
.
fetchall
())
logging
.
info
(
"get_content_level_card_info:
%
s"
%
card_info
)
if
len
(
data
)
>
0
:
if
len
(
data
)
>
0
:
return
int
(
data
[
0
][
0
])
return
int
(
data
[
0
][
0
])
else
:
return
0
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
...
...
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