|
|
@@ -2682,11 +2682,10 @@ def get_user_follows_v3(request):
|
|
|
if item:
|
|
|
user_id = item["user_id"]
|
|
|
latest_key = "PLAYER_LATEST_%d"%user_id
|
|
|
-
|
|
|
- today_stock = json.loads(item["today_stock"])
|
|
|
+ today_stock = json.loads(item["today_stock"]) if item.get("today_stock") else []
|
|
|
today_stock = filter(lambda x:x["name"] and x["fund"],today_stock)
|
|
|
item["today_stock"] = today_stock
|
|
|
- item["today_stock_img"] = json.loads(item["today_stock_img"])
|
|
|
+ item["today_stock_img"] = json.loads(item["today_stock_img"]) if item.get("today_stock_img") else []
|
|
|
|
|
|
win_rate = ccc.cache.hget(latest_key,"win_rate")
|
|
|
if win_rate:
|