Skip to content

Commit

Permalink
Merge pull request #418 from intuitem/update-status
Browse files Browse the repository at this point in the history
Update status.py
  • Loading branch information
eric-intuitem authored May 12, 2024
2 parents 946ffb6 + fcc2c01 commit 4c74d0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/core/management/commands/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ def handle(self, *args, **kwargs):
nb_risk_acceptances = RiskAcceptance.objects.all().count()
created_at = Folder.get_root_folder().created_at
last_login = max(
x["last_login"] for x in User.objects.all().values("last_login")
[
x["last_login"]
for x in User.objects.all().values("last_login")
if x["last_login"]
],
default=None,
)
self.stdout.write(
f"created_at={created_at.strftime('%Y-%m-%dT%H:%M')} last_login={last_login.strftime('%Y-%m-%dT%H:%M') if last_login else last_login} "
Expand Down

0 comments on commit 4c74d0e

Please sign in to comment.