
请关注微信公众号,回复:联系方式
添加QQ群寻求帮助
您可以关注下方微信公众号,回复:联系方式,获取QQ交流群群号,并在群内寻求帮助。 +







diff --git a/app/DataBase/exporter_html.py b/app/DataBase/exporter_html.py index 83c6a48..a657246 100644 --- a/app/DataBase/exporter_html.py +++ b/app/DataBase/exporter_html.py @@ -16,19 +16,17 @@ from app.util.emoji import get_emoji_url from app.util.image import get_image_path, get_image from app.util.music import get_music_path - icon_files = { './icon/word.png': ['doc', 'docx'], './icon/excel.png': ['xls', 'xlsx'], './icon/csv.png': ['csv'], './icon/txt.png': ['txt'], - './icon/zip.png': ['zip', '7z','rar'], + './icon/zip.png': ['zip', '7z', 'rar'], './icon/ppt.png': ['ppt', 'pptx'], './icon/pdf.png': ['pdf'], } - class HtmlExporter(ExporterBase): def text(self, doc, message): type_ = message[2] @@ -287,7 +285,9 @@ class HtmlExporter(ExporterBase): content = f.read() html_head, html_end = content.split('/*注意看这是分割线*/') f = open(filename, 'w', encoding='utf-8') - f.write(html_head.replace("
出错了
", f"{self.contact.remark}
") + f.write(html_head) self.rangeSignal.emit(len(messages)) for index, message in enumerate(messages): type_ = message[2] @@ -333,7 +333,7 @@ class HtmlExporter(ExporterBase): @return: """ self.num += 1 - print('子线程完成',self.num,'/',self.total_num) + print('子线程完成', self.num, '/', self.total_num) if self.num == self.total_num: # 所有子线程都完成之后就发送完成信号 self.okSignal.emit(1) diff --git a/app/resources/data/template.html b/app/resources/data/template.html index 932da6c..0017aeb 100644 --- a/app/resources/data/template.html +++ b/app/resources/data/template.html @@ -1,22 +1,620 @@ - - - - -