Commit d70c557a authored by 赵威's avatar 赵威

update write db

parent 825cad2e
......@@ -420,6 +420,7 @@ def get_tag3_user_log(cl_id):
# )
def write_user_portrait(cl_id, first_solutions, second_solutions, first_demands, second_demands,
first_positions, second_positions, projects):
try:
today = datetime.date.today()
oneday = datetime.timedelta(days=1)
yesterday = today - oneday
......@@ -432,3 +433,6 @@ def write_user_portrait(cl_id, first_solutions, second_solutions, first_demands,
db.commit()
db.close()
cursor.close()
except Exception as e:
print("write db error")
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