Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
016a8f69
Commit
016a8f69
authored
5 years ago
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test file
parent
80a29efb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
hello.py
hello.py
+6
-6
No files found.
hello.py
View file @
016a8f69
...
@@ -178,7 +178,7 @@ def mysql(device_Android):
...
@@ -178,7 +178,7 @@ def mysql(device_Android):
def
get_redis
(
ios
):
def
get_redis
(
ios
):
redis_client
=
redis
.
StrictRedis
.
from_url
(
'redis://:ReDis!GmTx*0aN6@172.16.40.133:6379'
)
redis_client
=
redis
.
StrictRedis
.
from_url
(
'redis://:ReDis!GmTx*0aN6@172.16.40.133:6379'
)
diary_recommend_key
=
"TS:search_recommend_diary_queue:device_id:"
+
str
(
ios
)
diary_recommend_key
=
"TS:search_recommend_diary_queue:device_id:"
+
str
(
ios
)
a
=
redis_client
.
hgetall
(
diary_recommend_key
)
[
"diary_queue"
]
a
=
redis_client
.
hgetall
(
diary_recommend_key
)
(
"diary_queue"
)
print
(
a
)
print
(
a
)
return
a
return
a
...
@@ -189,10 +189,10 @@ if __name__ == '__main__':
...
@@ -189,10 +189,10 @@ if __name__ == '__main__':
# a = mysql(device_IOS)
# a = mysql(device_IOS)
# # for i in a:
# # for i in a:
# # chapter_list = get_chapter(i)
# # chapter_list = get_chapter(i)
#
ios = "B6712382-69D5-4B12-9810-5F266411C4CF"
ios
=
"B6712382-69D5-4B12-9810-5F266411C4CF"
#
d = get_redis(ios)
d
=
get_redis
(
ios
)
b
=
get_opreaton
()
b
=
get_opreaton
()
#
c = set(d)&set(b)
c
=
set
(
d
)
&
set
(
b
)
#
print(len(c))
print
(
len
(
c
))
#
print(c)
print
(
c
)
This diff is collapsed.
Click to expand it.
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