Commit c7aba0dd authored by litaolemo's avatar litaolemo

update

parent eabd8821
......@@ -38,8 +38,8 @@ if __name__ == "__main__":
tag_names_list_week = []
date = datetime.datetime.now().date() - datetime.timedelta(days=count_date)
print(str(date))
date_str = date.strftime("%Y%m%d")
yesterday_date = datetime.datetime.now().date() - datetime.timedelta(days=count_date+1)
date_str = yesterday_date.strftime("%Y%m%d")
sql = """select keywords,sum(sorted) as nums,sum(uv) as uvs from api_search_word where is_delete = 0 and
create_time >= "{yesterday_date}" and create_time <= "{date}" group by keywords order by nums desc""".\
format(yesterday_date=str(yesterday_date),date=str(date))
......
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