调整写入tga的格式

This commit is contained in:
pengtao 2019-08-30 14:25:12 +08:00
parent 6bfc9a796e
commit dd888e9711

View File

@ -43,7 +43,7 @@ class Mycollect2001(GetFromTga):
tga_data['gameid'] = self.gameid
tga_data['channelid'] = self.channelid
tga_data['date'] = self.date
tga_data['#time'] = datetime.datetime.strptime("%Y-%m-%d", self.date)
tga_data['#time'] = datetime.datetime.strptime(self.date, "%Y-%m-%d")
if data:
for line in data:
if line:
@ -64,7 +64,7 @@ class Mycollect2001(GetFromTga):
tga_data['gameid'] = self.gameid
tga_data['channelid'] = self.channelid
tga_data['date'] = self.date
tga_data['#time'] = datetime.datetime.strptime("%Y-%m-%d", self.date)
tga_data['#time'] = datetime.datetime.strptime(self.date, "%Y-%m-%d")
if data:
for line in data:
if line: