Commit 66242755 authored by pengxiong's avatar pengxiong

修改模版

parent 483ca1f1
......@@ -49,8 +49,8 @@ hold_default_template = {
'cover_title2': '存续报告',
'logo': template_folder + 'logo.png',
'brand_name': '小飞象',
'logo_display': 'block',
'brand_name_display': 'block',
'logo_display': 'table-cell',
'brand_name_display': 'table-cell',
'financial_text': '我们挣的是⻆度和变化的钱而不是纠正市场错误的钱,市场永远是正确的,关键是在其正确被反复证明后的逆向而行,一定是避开它的正确被展开的过程。',
'cover_back': template_folder + 'cover-back.png',
'scene': template_folder + 'scene.png',
......@@ -97,8 +97,8 @@ diagnose_default_template = {
'cover_title2': '存续报告',
'logo': template_folder + 'logo.png',
'brand_name': '小飞象',
'logo_display': 'block',
'brand_name_display': 'block',
'logo_display': 'table-cell',
'brand_name_display': 'table-cell',
'financial_text': '我们挣的是⻆度和变化的钱而不是纠正市场错误的钱,市场永远是正确的,关键是在其正确被反复证明后的逆向而行,一定是避开它的正确被展开的过程。',
'cover_back': template_folder + 'cover-back.png',
'scene': template_folder + 'scene.png',
import json
import sys
import time
import uuid
......@@ -296,7 +297,7 @@ class DataIntegrate:
env = Environment(loader=PackageLoader('app', 'templates')) # 创建一个包加载器对象
# template = env.get_template('monthReport.html') # 获取一个模板文件
template = env.get_template('/v2/monthReportV2.1.html') # 获取一个模板文件
monthReport_html = template.render(self.data) # 渲染
monthReport_html = template.render(self.data).replace('None', 'none') # 渲染
# 保存 monthReport_html
# save_file = "app/html/monthReport.html"
# with open(save_file, 'w', encoding="utf-8") as f:
......
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