Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
832726b9
authored
Oct 18, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add test5
parent
d95b6025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
test5.py
test5.py
View file @
832726b9
...
@@ -259,7 +259,7 @@ def update_pop_class():
...
@@ -259,7 +259,7 @@ def update_pop_class():
create_time
=
int
(
time
.
time
())
create_time
=
int
(
time
.
time
())
# sql = "insert into lie_shop_class (parent_id, class_id, class_name, depth, status, platform, create_time) values (%s, %s, %s, %s, %s, %s, %s)"
# sql = "insert into lie_shop_class (parent_id, class_id, class_name, depth, status, platform, create_time) values (%s, %s, %s, %s, %s, %s, %s)"
select_sql
=
"select id from lie_shop_class where platform = 3 and class_id =
%
s"
select_sql
=
"select id from lie_shop_class where platform = 3 and class_id =
%
s"
cursor
.
execute
(
query
=
select_sql
)
cursor
.
execute
(
query
=
select_sql
,
args
=
(
class_id
,)
)
db_result
=
cursor
.
fetchall
()
db_result
=
cursor
.
fetchall
()
if
len
(
db_result
)
==
0
:
if
len
(
db_result
)
==
0
:
sql
=
"insert into lie_shop_class (parent_id, class_id, class_name, depth, status, platform, create_time) values (
%
s,
%
s,
%
s,
%
s,
%
s,
%
s,
%
s)"
sql
=
"insert into lie_shop_class (parent_id, class_id, class_name, depth, status, platform, create_time) values (
%
s,
%
s,
%
s,
%
s,
%
s,
%
s,
%
s)"
...
...
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