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

.

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