From afe48867a22e0374879279f797406c24b45f12ca Mon Sep 17 00:00:00 2001 From: ngfchl Date: Mon, 30 Jan 2023 13:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=88=91=E7=9A=84=E6=95=B0=E6=8D=AE=E5=88=97=E8=A1=A8=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index a678032..70183f8 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -695,7 +695,7 @@ def site_status_api(request): 'p_years': round(p_years, 4), 'now': datetime.strftime( SiteStatus.objects.order_by('-updated_at').first().updated_at, - '%Y-%m-%d %H:%M:%S'), + '%Y-%m-%d %H:%M:%S') if len(SiteStatus.objects.all()) > 0 else datetime.now(), } # return render(request, 'auto_pt/status.html') userdata = {