Commit f26700b5 authored by 高雅喆's avatar 高雅喆

reset the formal

parent 3da41c4d
...@@ -32,7 +32,7 @@ def get_yesterday_date(): ...@@ -32,7 +32,7 @@ def get_yesterday_date():
:rtype : str :rtype : str
""" """
today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=2) yesterday = today - datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y-%m-%d") yesterday = yesterday.strftime("%Y-%m-%d")
return yesterday return yesterday
......
...@@ -32,6 +32,6 @@ def get_yesterday_date(): ...@@ -32,6 +32,6 @@ def get_yesterday_date():
:rtype : str :rtype : str
""" """
today = datetime.date.today() today = datetime.date.today()
yesterday = today - datetime.timedelta(days=2) yesterday = today - datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y-%m-%d") yesterday = yesterday.strftime("%Y-%m-%d")
return yesterday return yesterday
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