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

Some transaction entries are created with created_at in the past #36

Open
jkemp101 opened this issue Oct 2, 2020 · 0 comments
Open

Comments

@jkemp101
Copy link
Member

jkemp101 commented Oct 2, 2020

Further investigation is needed to determine why some created_at values are in the past when records are created in the transaction table. Related code:

if revision_type == "delete":
created_at = getattr(obj, "deleted_at", None)
# Sometimes categories are deleted explicitly which leaves
# their deleted_at default value, EPOCH, when the
# transaction is created.
if created_at == EPOCH:
created_at = func.now()
else:
created_at = getattr(obj, "updated_at", None)

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