Commit 832726b9 by 岳巧源

add test5

parent d95b6025
Showing with 1 additions and 1 deletions
...@@ -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)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment