Commit 8b54e599 authored by 王志伟's avatar 王志伟

change tab

parent 0a5870d6
...@@ -5,16 +5,16 @@ import datetime ...@@ -5,16 +5,16 @@ import datetime
DIRECTORY_PATH="/data2/ffm/" DIRECTORY_PATH="/data2/ffm/"
def get_yesterday_date(): def get_yesterday_date():
#自动获取昨天的日期,如"2018-08-08" #自动获取昨天的日期,如"2018-08-08"
""" """
:rtype : str :rtype : str
""" """
today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1) yesterday = today - datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y%m%d") yesterday = yesterday.strftime("%Y%m%d")
return yesterday return yesterday
#today = datetime.date.today().strftime("%Y%m%d") #today = datetime.date.today().strftime("%Y%m%d")
#return today #return today
def get_data(): def get_data():
conn2db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='eagle') conn2db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='eagle')
......
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