Commit c4ffc22d authored by wang zhengwei's avatar wang zhengwei

修复时间停滞问题

parent eb2e6350
...@@ -18,6 +18,7 @@ from app.utils.draw import draw_month_return_chart, draw_contribution_chart, dra ...@@ -18,6 +18,7 @@ from app.utils.draw import draw_month_return_chart, draw_contribution_chart, dra
draw_old_combination_chart, draw_index_combination_chart draw_old_combination_chart, draw_index_combination_chart
from app.utils.html_to_pdf import html_to_pdf from app.utils.html_to_pdf import html_to_pdf
from app.utils.radar_chart import gen_radar_chart from app.utils.radar_chart import gen_radar_chart
from datetime import datetime
class DataIntegrate: class DataIntegrate:
...@@ -267,7 +268,7 @@ class DataIntegrate: ...@@ -267,7 +268,7 @@ class DataIntegrate:
data = { data = {
# 全局数据 # 全局数据
'customer_name': self.customer_name, '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, '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