From 1520889b20b2fbc718c68dcc766b67c5bbd0f3d0 Mon Sep 17 00:00:00 2001 From: pengtao Date: Mon, 15 Jul 2019 16:16:24 +0800 Subject: [PATCH] fix some error --- ad_interface_tornado.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ad_interface_tornado.py b/ad_interface_tornado.py index 21ea8ce..c00c0f9 100644 --- a/ad_interface_tornado.py +++ b/ad_interface_tornado.py @@ -34,8 +34,8 @@ def send_cache_data(): if line: item = {} try: - item['id'], item['name'], item['ad_num'], item['ad_title'], item['ad_body'], item['ad_image'], item[ - 'ad_url'], item['ad_sort'], item['companyid'], item['locationid'], item['gameid'] = line + item['id'], item['name'], item['ad_num'], item['ad_title'], item['ad_body'], item['ad_image'], item['ad_url'], \ + item['ad_sort'], item['companyid'], item['locationid'], item['gameid'] = line all.append(item) except Exception: log.error("split data failed", exc_info=True) @@ -49,8 +49,8 @@ def send_cache_data(): if line: item = {} try: - item['id'], item['name'], item['ad_num'], item['ad_title'], item['ad_body'], item['ad_image'], item[ - 'ad_url'], item['ad_sort'], item['companyid'], item['locationid'], item['gameid'] = line + item['id'], item['name'], item['ad_num'], item['ad_title'], item['ad_body'], item['ad_image'], item['ad_url'], \ + item['ad_sort'], item['companyid'], item['locationid'], item['gameid'] = line all.append(item) except Exception: log.error("split data failed", exc_info=True)