|
|
@@ -1740,7 +1740,7 @@ def update_user_style(**kwargs):
|
|
|
"""
|
|
|
user_id = kwargs.pop("user_id")
|
|
|
#player_id = kwargs.pop("player_id")
|
|
|
- init_fund = kwargs.pop("init_fund")
|
|
|
+ #init_fund = kwargs.pop("init_fund")
|
|
|
#avatar = kwargs.pop("avatar")
|
|
|
|
|
|
cm.UserInfo.objects.filter(id=user_id).update(**kwargs)
|
|
|
@@ -2730,6 +2730,8 @@ def get_profit_list(**kwargs):
|
|
|
for item in data:
|
|
|
item["win_loss"] = item["today_fund"] - item["yesterday_fund"]
|
|
|
item["total_win_loss"] = item["today_fund"] - item["init_fund"]
|
|
|
+ item["win_loss"] = round(item["win_loss"],4)
|
|
|
+ item["total_win_loss"] = round(item["total_win_loss"],4)
|
|
|
if _type == "win":
|
|
|
data = sorted(data,key=lambda x:x["win_loss"],reverse=True)
|
|
|
if _type == "loss":
|
|
|
@@ -2813,7 +2815,7 @@ def get_group_rank_list_v3(request):
|
|
|
|
|
|
|
|
|
def get_article_type_list(**kwargs):
|
|
|
- rst = [u"每日点评",u"冠军心得",u"腰斩心得",u"牛人专访"]
|
|
|
+ rst = [u"腰斩专场",u" 冠军交割",u"牛人专场",u" 游资列传",u"妖股列传"]
|
|
|
return rst
|
|
|
|
|
|
|