Commit e575d1b4 authored by 赵杰's avatar 赵杰

设置12月31日

parent c0cfc2ab
......@@ -32,7 +32,7 @@ class UserCustomerDataAdaptor:
all_fund_distribution = {}
all_fund_performance = {}
def __init__(self, user_id, customer_id, end_date=str(datetime.date.today()), index_id="IN0000007M"):
def __init__(self, user_id, customer_id, end_date=str("2020-12-31"), index_id="IN0000007M"):
self.user_id = user_id
self.customer_id = customer_id
self.compare_index_id = index_id
......
......@@ -342,7 +342,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
# 月度回报表格数据
start_year = self.start_date.year
now_year = datetime.datetime.now().year
now_year = self.end_date.year
month_return_data_dict = {}
for i in range(now_year-start_year+1):
month_return_data_dict[start_year+i] = {j+1: {"profit": "-", "net_amount": "-"} for j in range(12)}
......
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