Commit c2cf61d2 by 蒋勇

d

parent c24e9ae4
...@@ -24,7 +24,7 @@ class IndexGet: ...@@ -24,7 +24,7 @@ class IndexGet:
# indexItem.Id = row[0] # indexItem.Id = row[0]
indexItem.Name = row[1] indexItem.Name = row[1]
indexItem.IndexName = row[2] indexItem.IndexName = row[2]
funs=str(row[3]).replace("\n","").replace(";",";").split(";") funs=str(row[3]).replace("\n","").replace(";",";").replace(")]","))").replace("[(","((").split(";")
funsGrp=[] funsGrp=[]
for fun in funs: for fun in funs:
funsGrp.append(fun) funsGrp.append(fun)
......
...@@ -112,9 +112,10 @@ redisPool = redis.ConnectionPool(host='43.247.184.32', port=8967, password='Gong ...@@ -112,9 +112,10 @@ redisPool = redis.ConnectionPool(host='43.247.184.32', port=8967, password='Gong
client = redis.Redis(connection_pool=redisPool) client = redis.Redis(connection_pool=redisPool)
# value=client.rpop('notifyRule') # value=client.rpop('notifyRule')
a = client.lrange('notifyRule',0,-1) a = client.lrange('notifyRule',0,-1)
print(a) if len(a)==0:
print("notifyRule数据为空")
quit()
value =a[-1] value =a[-1]
print(value,"redis")
if client is None: if client is None:
client.rpop('notifyRule') client.rpop('notifyRule')
quit() quit()
......
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