From d5d1af40567d0150c97fd791801ca89f536f9e93 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 14 Oct 2019 12:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=BB=A5=E5=89=8D=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9A=84=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data_channel/gamelog_external.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data_channel/gamelog_external.py b/data_channel/gamelog_external.py index d873922..cee1b9d 100644 --- a/data_channel/gamelog_external.py +++ b/data_channel/gamelog_external.py @@ -7,7 +7,7 @@ from ops.mmysql import MysqlBase import time from config.config import args log = logging.getLogger(__name__) - +import os class Build_Gamelog_Config(): def __init__(self): @@ -36,6 +36,8 @@ class Build_Gamelog_Config(): return out def build_config(self, data): + if os.path.isfile(self.filename): + os.remove(self.filename) start = "