Commit 349fb21f authored by 赵杰's avatar 赵杰

月度回报字符串key1

parent f22c77dd
......@@ -351,7 +351,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
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)}
month_return_data_dict[str(start_year+i)] = {str(j+1): {"profit": "-", "net_amount": "-"} for j in range(12)}
for d_index, d_row in month_sum.items():
cur_year = str(int(d_index[:4]))
cur_month = str(int(d_index[5:]))
......
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