From 70734b5c6b2c81ee4cc02be48b01c4e031405cc6 Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 4 Sep 2019 17:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=96=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron/get_newuser_days.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/get_newuser_days.py b/cron/get_newuser_days.py index fcbf879..d62d36d 100644 --- a/cron/get_newuser_days.py +++ b/cron/get_newuser_days.py @@ -45,7 +45,7 @@ def get_data(times, gameid, channelid): def write2db(data, times, gameid, channelid): for line in data: line['date'] = times - line['key'] = f"{gameid}#{channelid}#{line['ad_channel']}" + line['key'] = f"{gameid}#{channelid}#{line['ad_channel']}#{times}" try: mydb.insert(table_name, line) except Exception: