Skip to content

Commit

Permalink
Update status.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Nov 30, 2024
1 parent 0961b1e commit c205a93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backend/core/management/commands/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ def handle(self, *args, **kwargs):
nb_risk_assessments = RiskAssessment.objects.all().count()
nb_risk_scenarios = RiskScenario.objects.all().count()
nb_risk_acceptances = RiskAcceptance.objects.all().count()
nb_seats_available = getattr(settings, "LICENSE_SEATS", 0)
nb_expiry_date = getattr(settings, "LICENSE_EXPIRATION", "")
nb_seats = getattr(settings, "LICENSE_SEATS", 0)
nb_editors = len(User.get_editors())
expiration = getattr(settings, "LICENSE_EXPIRATION", "")

created_at = Folder.get_root_folder().created_at
last_login = max(
Expand All @@ -41,5 +42,5 @@ def handle(self, *args, **kwargs):
+ f"threats={nb_threats} functions={nb_functions} measures={nb_measures} "
+ f"evidences={nb_evidences} compliance={nb_compliance_assessments} risk={nb_risk_assessments} "
+ f"scenarios={nb_risk_scenarios} acceptances={nb_risk_acceptances} "
+ f"number_of_seats={nb_seats_available} expiry_date={nb_expiry_date}"
+ f"seats={nb_seats} editors={nb_editors} expiration={expiration}"
)

0 comments on commit c205a93

Please sign in to comment.