Skip to content

Commit

Permalink
🐛 LunchableTransactionsApp gets all time data
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Sep 9, 2023
1 parent 8bb8a0c commit e97598b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lunchable/plugins/base/base_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ def start_date(self) -> datetime.date:
-------
datetime.date
"""
return datetime.date.today() - datetime.timedelta(days=365)
today = datetime.date.today()
return today.replace(year=today.year - 100)

@property
def end_date(self) -> datetime.date:
Expand All @@ -399,4 +400,5 @@ def end_date(self) -> datetime.date:
-------
datetime.date
"""
return datetime.date.today() + datetime.timedelta(days=1)
today = datetime.date.today()
return today.replace(year=today.year + 100)
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ dependencies = [
features = [
"all"
]
path = ".venv"
pre-install-commands = ["pip install -U --no-deps -r requirements/dev.txt"]

[tool.hatch.envs.default.env-vars]
Expand Down

0 comments on commit e97598b

Please sign in to comment.