Commit 976dd762 authored by wang zhengwei's avatar wang zhengwei

修复时间停滞问题

parent 629ec9aa
......@@ -13,6 +13,7 @@ from app.service.result_service_v2 import UserCustomerResultAdaptor
import numpy as np
from concurrent import futures
import os
from datetime import datetime
# 准备数据
from app.utils.draw import draw_month_return_chart, draw_contribution_chart, draw_combination_chart, \
......@@ -235,7 +236,7 @@ class DataIntegrate:
data = {
# 全局数据
'customer_name': self.customer_name,
'year_month': self.user_customer.end_date.strftime("%Y-%m-%d"),
'year_month': datetime.now().strftime("%Y-%m-%d"),
'valueSex': self.user_customer.valueSex,
'month': self.user_customer.month_start_date.strftime("%m"),
'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