Commit b63a737d by lichenggang

'update redis num'

parent fb758393
Showing with 9 additions and 2 deletions
......@@ -144,7 +144,7 @@ def get_url():
pool = redis.ConnectionPool(**get_redis_conf())
r = redis.Redis(connection_pool=pool)
for _ in range(300):
for _ in range(260):
cate_url = r.lpop('csc_elec_chip1stop_1')
if cate_url:
......
......@@ -568,7 +568,14 @@ class MySqlOperator(object):
if __name__ == '__main__':
# pass
d = MySqlOperator('szlc')
d = MySqlOperator('chip1stop')
with d.db.cursor() as cursor:
sql = "SELECT goods_id FROM lie_goods WHERE goods_name=%s and goods_name_style=%s"
cursor.execute(sql, ('AD976AR', 'AD01-0000139'))
result = cursor.fetchone()
result = result[0] if result else None
print(result)
# print(d.get_ext_id_by_goods_id_attr_name(18000500790, 'Product Category'))
# data = (('SO180219037', '蔡**', '19**62A', 1519055525, '2018-02-19 23:52:05', 100, '已付3', '好好', '待取货3', 1519055525,
# 2519055525),
......
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 sign in to comment