Commit 13a5efbc authored by 任婷婷's avatar 任婷婷

.

parent c11aaf45
......@@ -559,6 +559,15 @@ def user_portrait_action_statistic(cl_id):
# PRIMARY KEY(`id`)
# );
# CREATE TABLE `user_portrait_test2` (
# `id` int(11) NOT NULL AUTO_INCREMENT,
# `date` text NOT NULL,
# `cl_id` text NOT NULL,
# `score` text NOT NULL,
# PRIMARY KEY(`id`)
# );
def write_user_portrait_action_divided(cl_id,event_cn,score,first_solutions, second_solutions, first_demands, second_demands,
first_positions, second_positions, projects):
try:
......@@ -575,8 +584,9 @@ def write_user_portrait_action_divided(cl_id,event_cn,score,first_solutions, sec
# sql = """insert into user_portrait_test values(null, '{}', '{}', '{}')""".format(
# yesterday, cl_id,score)
sql = """insert into user_portrait_test values(null, '{}', '{}')""".format(
yesterday, score)
sql = """insert into user_portrait_test2 values(null, '{}', '{}','{}')""".format(
yesterday,cl_id, score)
db, cursor = connect_mysql()
# db, cursor = get_jerry_test()
......
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 to comment