mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Automate counting of live services and orgs
Returns the data calculated by the API. Stored in Redis against a hardcoded key so that no-one hammering the home page is directly hitting the database.
This commit is contained in:
@@ -72,6 +72,9 @@ class Service():
|
||||
def update(self, **kwargs):
|
||||
return service_api_client.update_service(self.id, **kwargs)
|
||||
|
||||
def update_status(self, live):
|
||||
return service_api_client.update_status(self.id, live=live)
|
||||
|
||||
def switch_permission(self, permission):
|
||||
return self.force_permission(
|
||||
permission,
|
||||
|
||||
Reference in New Issue
Block a user