This commit is contained in:
pengtao 2019-09-30 14:14:26 +08:00
parent 342097e70a
commit 1c03e18789

View File

@ -9,7 +9,7 @@ define_logger("/data/logs/gather_new_user.log")
log = logging.getLogger(__name__)
TimeDelay = 10
DB = {'user': 'mytga', 'pswd': 'gzVwh4HGR68G', 'host': '10.10.3.5', 'db': 'games_report'}
DB = {'user': 'mytga', 'pswd': 'gzVwh4HGR68G', 'host': '10.10.3.5', 'db': 'test'}
mydb = MysqlBase(**DB)
@ -117,11 +117,12 @@ def run(gameid, channelid, ad_channel):
def main():
gameid = 2001
channel = 6001
ad_channel = get_ad_chanllel(gameid)
for item in ad_channel:
run(gameid, channel, item)
gameids = (1004, 1011, 2001)
for gameid in gameids:
channel = 6001
ad_channel = get_ad_chanllel(gameid)
for item in ad_channel:
run(gameid, channel, item)
if __name__ == "__main__":