Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction date defaults to app startup time, not the time when transaction is posted #50

Open
tumik opened this issue Nov 27, 2024 · 0 comments

Comments

@tumik
Copy link

tumik commented Nov 27, 2024

In the Transaction class, the date is defaulting to datetime.now() which I believe is executed on the startup of the application.

class Transaction(BaseModel):
account: str = ""
amount: Optional[Decimal] = Field(default=Decimal(0), decimal_places=2)
date: Optional[str] = datetime.now().strftime("%b %d, %Y")

If the date information is not sent on every transaction, the default date for the transactions is the startup date of ActualTap - and not the date on which the transaction is added. I believe it's supposed to be the date on which the transaction is being added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant