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

Bugfix: Parameters of a decorator are evaluated when python starts #68

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

guilbaults
Copy link
Owner

This means datetime.now() will not update in long-lived Django Python process. Time deltas must be used instead and the actual start and end datetime are calculated within the function and not in the parameters.

This is fixing generic graph that does not have the right start and end time in production since the process stays running for multiple weeks.

This means datetime.now() will not update in long-lived Django Python process. Timedelta must be used instead and the delta is calculated within the function and not in the parameters.
@guilbaults guilbaults merged commit e2d85d5 into main Nov 12, 2024
9 checks passed
@guilbaults guilbaults deleted the decorator_datetime branch November 12, 2024 20:40
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

Successfully merging this pull request may close these issues.

1 participant