Commit 24a73ec5 authored by 任婷婷's avatar 任婷婷

.

parent 6c129fee
......@@ -119,8 +119,8 @@ def update_tag3_user_portrait(cl_id):
# print('OUTPUT data:')
data = user_portrait_action_statistic(cl_id)
print('=' * 100)
# print(data)
print('cl_id',cl_id)
print(data)
# print('cl_id',cl_id)
print('='*100)
for key, values in data.items():
cl_id_single = key
......
......@@ -479,7 +479,7 @@ def get_user_portrait_log(cl_id):
def user_portrait_action_statistic(cl_id):
# try:
try:
ud_dict = {}
user_df = get_user_portrait_log(cl_id)
# print('-'*100)
......@@ -524,9 +524,8 @@ def user_portrait_action_statistic(cl_id):
return ud_dict
# except Exception as e:
# print('user_portrait_action_statistic error')
# print(e)
except:
pass
#
#
......@@ -546,16 +545,6 @@ 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:
......@@ -578,9 +567,8 @@ def write_user_portrait_action_divided(cl_id,event_cn,score,first_solutions, sec
db.close()
cursor.close()
except Exception as e:
print("write_user_portrait_action_divided error")
print(e)
except:
pass
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