Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
saturn
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
saturn
Commits
2b919606
Commit
2b919606
authored
Aug 08, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
fix code See merge request
alpha/saturn!87
parents
a9c495ea
c28b8f7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pictorial.py
api/views/pictorial.py
+3
-3
No files found.
api/views/pictorial.py
View file @
2b919606
...
...
@@ -20,7 +20,7 @@ class CreatePictorial(BaseView):
"""
画报爬取接口
"""
user_id_
list
=
[
241407684
,
241407653
,
241407671
,
241592897
]
user_id_
start
=
241806255
# end 241757306
del_cache_keys
=
[]
def
del_cache
(
self
):
...
...
@@ -28,8 +28,8 @@ class CreatePictorial(BaseView):
ins_cache
.
delete
(
obj
)
def
get_random_user_id
(
self
):
index
=
randint
(
0
,
3
)
return
self
.
user_id_
list
[
index
]
index
=
randint
(
0
,
5000
)
return
self
.
user_id_
start
+
index
def
get_user_id
(
self
,
id_
,
platform
):
cache_key
=
'grap:{}:{}'
.
format
(
platform
,
id_
)
...
...
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