Commit c28b8f7c authored by haowang's avatar haowang

fix code

parent e8dbe70e
......@@ -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_)
......
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