From 68552e958ac425c32a48b67d523a690b4be3ce2c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 26 Apr 2022 22:45:35 +0800 Subject: [PATCH] =?UTF-8?q?static=20favico=20=E5=AF=BC=E5=87=BAgc,=20addyh?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- safesite/export.py | 2 +- safesite/templates/index.html | 2 +- safesite/templates/login.html | 2 +- safesite/views.py | 19 +++++++++++++++---- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/safesite/export.py b/safesite/export.py index d562c156..0a109152 100644 --- a/safesite/export.py +++ b/safesite/export.py @@ -619,7 +619,7 @@ def exportxlsx(a,objs,pic=1): sheet.write(x,8,i['otherunsafe']) sheet.write(x,9,i['safecontent']) sheet.write(x,10,i['submittime'].strftime("%Y-%m-%d %H:%M:%S")) - i['lookimg']=i['lookimg'].split('?') + i['lookimg']=i['lookimg'].split('?') if i['lookimg'] else [] n = i['lookimg'] for m in n: if m: diff --git a/safesite/templates/index.html b/safesite/templates/index.html index 30d35ed2..a6d2c4ca 100644 --- a/safesite/templates/index.html +++ b/safesite/templates/index.html @@ -5,7 +5,7 @@ ctc安全生产管理系统 - + diff --git a/safesite/templates/login.html b/safesite/templates/login.html index f8abd2a2..88e7df99 100644 --- a/safesite/templates/login.html +++ b/safesite/templates/login.html @@ -5,7 +5,7 @@ 安全生产管理系统 - +