Skip to content

Commit

Permalink
fix: Last Influx data updated at never updates (#2802)
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa authored Sep 27, 2023
1 parent e62be85 commit 929afeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/sales_dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ def get_context_data(self, **kwargs):
try:
subscription_information_caches_influx_updated_at = (
OrganisationSubscriptionInformationCache.objects.order_by(
"-influx_updated_at"
F("influx_updated_at").desc(nulls_last=True)
)
.first()
.influx_updated_at.strftime("%H:%M:%S %d/%m/%Y")
)

except AttributeError:
subscription_information_caches_influx_updated_at = None

Expand Down

3 comments on commit 929afeb

@vercel
Copy link

@vercel vercel bot commented on 929afeb Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 929afeb Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-flagsmith.vercel.app
docs.flagsmith.com
docs-git-main-flagsmith.vercel.app
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on 929afeb Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.