Commit 04f0591c authored by 高雅喆's avatar 高雅喆

update

parent 683006e6
......@@ -132,7 +132,6 @@ def get_user_service_portrait_not_alipay2(cl_id, all_word_tags, all_tag_tag_type
db_jerry_test = pymysql.connect(host='172.16.40.158', port=4000, user='root', passwd='3SYz54LS9#^9sBvC',
db='jerry_test', charset='utf8')
cur_jerry_test = db_jerry_test.cursor()
yesterday = get_yesterday_start_timestamp()
# 用户的非搜索、支付的行为
user_df_service_sql = "select time,cl_id,score_type,tag_id,tag_referrer,action from user_new_tag_log " \
"where cl_id ='{cl_id}' and time < {pay_time} and action not in " \
......
......@@ -212,10 +212,3 @@ def get_action_tag_count(df, action_time):
return 1
except Exception as e:
print(e)
def get_yesterday_start_timestamp():
today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1)
yesterday_start_time = int(time.mktime(time.strptime(str(yesterday), '%Y-%m-%d')))
return yesterday_start_time
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