From f724139d8cc9cf547a41b092e7bad76d14b6f8da Mon Sep 17 00:00:00 2001 From: Jalin Date: Sun, 13 Jan 2019 12:50:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py12306/log/query_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py12306/log/query_log.py b/py12306/log/query_log.py index 18d140d..6a3d7c3 100644 --- a/py12306/log/query_log.py +++ b/py12306/log/query_log.py @@ -154,7 +154,7 @@ class QueryLog(BaseLog): self = cls() self.add_log( '=== 正在进行第 {query_count} 次查询 {job_name} === {time}'.format( - query_count=(self.data.get('query_count', 0)) + 1, + query_count=int(self.data.get('query_count', 0)) + 1, job_name=job_name, time=datetime.datetime.now())) self.refresh_data() if is_main_thread():