You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
687 B
15 lines
687 B
|
19 hours ago
|
# -*- coding: utf-8 -*-
|
||
|
|
"""票 04 heavy 重跑前置:followOld 锚点重置 30 天前(seed 同款 patch)"""
|
||
|
|
import pymysql
|
||
|
|
|
||
|
|
conn = pymysql.connect(host='8.129.84.155', user='root', password='Itc@123456',
|
||
|
|
database='crm', charset='utf8mb4', autocommit=True,
|
||
|
|
cursorclass=pymysql.cursors.DictCursor)
|
||
|
|
cur = conn.cursor()
|
||
|
|
cur.execute("UPDATE customer SET last_valid_follow_time = NOW() - INTERVAL 30 DAY "
|
||
|
|
"WHERE id='750844481363771392'")
|
||
|
|
cur.execute("SELECT last_valid_follow_time a FROM customer WHERE id='750844481363771392'")
|
||
|
|
print('followOld 锚点已重置 ->', cur.fetchone()['a'])
|
||
|
|
conn.close()
|
||
|
|
print('ANCHOR RESET DONE')
|