-
Notifications
You must be signed in to change notification settings - Fork 429
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
fix: Last Influx data updated at never updates #2802
fix: Last Influx data updated at never updates #2802
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
api/sales_dashboard/views.py
Outdated
) | ||
.order_by("-influx_updated_at") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are only fetching the first element, we can do desc(null_last=True)
/
docs: https://docs.djangoproject.com/en/3.1/ref/models/expressions/#django.db.models.Expression.desc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2802 +/- ##
=======================================
Coverage 95.53% 95.53%
=======================================
Files 994 994
Lines 28072 28072
=======================================
Hits 26818 26818
Misses 1254 1254
☔ View full report in Codecov by Sentry. |
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingChanges
How did you test this code?