Commit 28ceb7fe authored by 高雅喆's avatar 高雅喆

get the day before yesterday

parent e183dd10
...@@ -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=1) yesterday = today - datetime.timedelta(days=2)
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