Commit 6a5725b6 authored by litaolemo's avatar litaolemo

update

parent 12487ab1
......@@ -49,7 +49,7 @@ def send_email_tome():
# toaddrs3 = "wangxin@igengmei.com"`
# toaddrs4 ="hezijun@igengmei.com"
# toaddrs5 = "malinxi@igengmei.com"
toaddrs6 = "litao@igengmei.com"
# toaddrs6 = "litao@igengmei.com"
content = 'hi all:附件为' + str(date) + '的搜索词数据统计结果以及近一周的数据统计结果,请查收!'
zipFile = "/srv/apps/crawler/近一月数据统计结果.xls"
......@@ -314,7 +314,7 @@ if __name__ == "__main__":
# WritrExcel().write_excel(path, tuple(all_data_day))
# print(u'创建demo.xls文件成功')
date = datetime.datetime.now().date() - datetime.timedelta(days=30)
date = datetime.datetime.now().date() - datetime.timedelta(days=60)
sql = 'select keywords,sum(sorted) as nums,sum(uv) as uvs from api_search_words where is_delete = 0 and create_time >= "' + str(
date) + '" group by keywords order by nums desc'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment