Commit 3024b4a7 authored by pengxiong's avatar pengxiong

时间

parent 07123beb
...@@ -32,7 +32,7 @@ class UserCustomerDataAdaptor: ...@@ -32,7 +32,7 @@ class UserCustomerDataAdaptor:
all_fund_distribution = {} all_fund_distribution = {}
all_fund_performance = {} all_fund_performance = {}
def __init__(self, user_id, customer_id, end_date=str("2020-12-31"), index_id="IN0000007M"): def __init__(self, user_id, customer_id, end_date=str(datetime.datetime.now().date()), index_id="IN0000007M"):
self.user_id = user_id self.user_id = user_id
self.customer_id = customer_id self.customer_id = customer_id
self.compare_index_id = index_id self.compare_index_id = index_id
......
...@@ -223,7 +223,7 @@ class DataIntegrate: ...@@ -223,7 +223,7 @@ class DataIntegrate:
data = { data = {
# 全局数据 # 全局数据
'customer_name': self.customer_name, 'customer_name': self.customer_name,
'year_month': self.user_customer.month_start_date.strftime("%Y-%m-%d"), 'year_month': self.user_customer.end_date.strftime("%Y-%m-%d"),
'valueSex': self.user_customer.valueSex, 'valueSex': self.user_customer.valueSex,
'month': self.user_customer.month_start_date.strftime("%m"), 'month': self.user_customer.month_start_date.strftime("%m"),
'start_date': self.user_customer.start_date.strftime("%Y-%m-%d"), 'start_date': self.user_customer.start_date.strftime("%Y-%m-%d"),
......
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