Commit a0613530 authored by 赵威's avatar 赵威

update user_portrait_db

parent e6eb5f85
......@@ -420,6 +420,16 @@ def get_jerry_test():
return db, db.cursor()
def get_doris_olap():
db = pymysql.connect(host="172.16.50.175",
port=3306,
user="doris",
passwd="o5gbA27hXHHm",
db="doris_olap",
charset="utf8")
return db, db.cursor()
def get_doris_prod():
db = pymysql.connect(host="172.16.30.136", port=3306, user="doris", passwd="o5gbA27hXHHm", db="doris_prod", charset="utf8")
return db, db.cursor()
......@@ -529,7 +539,7 @@ def write_user_portrait(cl_id, first_solutions, second_solutions, first_demands,
yesterday, cl_id, first_solutions, second_solutions, first_demands, second_demands, first_positions, second_positions,
projects, business_tags, selected_stars, selected_internet_celebrity)
db, cursor = get_jerry_test()
db, cursor = get_doris_olap()
cursor.execute(sql)
db.commit()
db.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