Commit f087c9d4 authored by 段英荣's avatar 段英荣

modify

parent 4d1c35a6
......@@ -8,6 +8,7 @@
</config>
<config name="initializer_list">
<element value="physical.django_init"/>
<element value="physical.views"/>
<element value="search.views.topic"/>
<element value="search.views.pick"/>
</config>
</gm_rpcd_config>
from django.apps import AppConfig
class SearchConfig(AppConfig):
name = 'search'
......@@ -18,7 +18,7 @@ def pick_celebrity(user_id,pick_id,offset=0,size=10):
try:
redis_celebrity_info = redis_client.get(redis_key)
have_read_pick_celebrity_ids = json.loads(redis_celebrity_info) if redis_celebrity_info
have_read_pick_celebrity_ids = json.loads(redis_celebrity_info)
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
pass
......
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