Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
c2cf61d2
Commit
c2cf61d2
authored
Jan 06, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c24e9ae4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
calc_result/IndexGet.py
+1
-1
calc_result/main.py
+3
-2
No files found.
calc_result/IndexGet.py
View file @
c2cf61d2
...
...
@@ -24,7 +24,7 @@ class IndexGet:
# indexItem.Id = row[0]
indexItem
.
Name
=
row
[
1
]
indexItem
.
IndexName
=
row
[
2
]
funs
=
str
(
row
[
3
])
.
replace
(
"
\n
"
,
""
)
.
replace
(
";"
,
";"
)
.
split
(
";"
)
funs
=
str
(
row
[
3
])
.
replace
(
"
\n
"
,
""
)
.
replace
(
";"
,
";"
)
.
replace
(
")]"
,
"))"
)
.
replace
(
"[("
,
"(("
)
.
split
(
";"
)
funsGrp
=
[]
for
fun
in
funs
:
funsGrp
.
append
(
fun
)
...
...
calc_result/main.py
View file @
c2cf61d2
...
...
@@ -112,9 +112,10 @@ redisPool = redis.ConnectionPool(host='43.247.184.32', port=8967, password='Gong
client
=
redis
.
Redis
(
connection_pool
=
redisPool
)
# value=client.rpop('notifyRule')
a
=
client
.
lrange
(
'notifyRule'
,
0
,
-
1
)
print
(
a
)
if
len
(
a
)
==
0
:
print
(
"notifyRule数据为空"
)
quit
()
value
=
a
[
-
1
]
print
(
value
,
"redis"
)
if
client
is
None
:
client
.
rpop
(
'notifyRule'
)
quit
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment