Commit 2b919606 authored by 王浩's avatar 王浩

Merge branch 'haow/dev' into 'test'

fix code

See merge request alpha/saturn!87
parents a9c495ea c28b8f7c
...@@ -20,7 +20,7 @@ class CreatePictorial(BaseView): ...@@ -20,7 +20,7 @@ class CreatePictorial(BaseView):
""" """
画报爬取接口 画报爬取接口
""" """
user_id_list = [241407684, 241407653, 241407671, 241592897] user_id_start = 241806255 # end 241757306
del_cache_keys = [] del_cache_keys = []
def del_cache(self): def del_cache(self):
...@@ -28,8 +28,8 @@ class CreatePictorial(BaseView): ...@@ -28,8 +28,8 @@ class CreatePictorial(BaseView):
ins_cache.delete(obj) ins_cache.delete(obj)
def get_random_user_id(self): def get_random_user_id(self):
index = randint(0, 3) index = randint(0, 5000)
return self.user_id_list[index] return self.user_id_start + index
def get_user_id(self, id_, platform): def get_user_id(self, id_, platform):
cache_key = 'grap:{}:{}'.format(platform, id_) cache_key = 'grap:{}:{}'.format(platform, id_)
......
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