Commit 8e3598d6 authored by 赵威's avatar 赵威

update sql

parent 181ca94f
......@@ -423,13 +423,12 @@ def write_user_portrait(cl_id, first_solutions, second_solutions, first_demands,
today = datetime.date.today()
oneday = datetime.timedelta(days=1)
yesterday = today - oneday
sql = """insert into user_tag3_portrait values(null, {}, {}, {}, {}, {}, {}, {}, {}, {})""".format(
sql = """insert into user_tag3_portrait values(null, '{}', '{}', '{}', '{}', '{}', '{}', '{}', '{}', '{}')""".format(
yesterday, cl_id, first_solutions, second_solutions, first_demands, second_demands, first_positions,
second_positions, projects)
db, cursor = get_jerry_test()
cursor.execute(sql)
db.commit()
db.close()
cursor.close()
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