From 2b2cf5e7b1ed9cd5afe4984a228950dd66cc0bea Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 7 Aug 2010 13:03:23 +0100 Subject: [PATCH] Remove another unneeded lookup function --- eve_api/models/api_player.py | 5 ----- templates/sso/profile.html | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/eve_api/models/api_player.py b/eve_api/models/api_player.py index 9c27899..4a37232 100644 --- a/eve_api/models/api_player.py +++ b/eve_api/models/api_player.py @@ -39,11 +39,6 @@ class EVEAccount(EVEAPIModel): verbose_name="API Status", help_text="End result of the last attempt at updating this object from the API.") - @property - def api_status_description(self): - for choice in API_STATUS_CHOICES: - if choice[0] == self.api_status: - return choice[1] def in_corp(self, corpid): for char in self.characters.all(): diff --git a/templates/sso/profile.html b/templates/sso/profile.html index 8112f06..ab12a6e 100644 --- a/templates/sso/profile.html +++ b/templates/sso/profile.html @@ -70,7 +70,7 @@ setup.

{{ acc.api_user_id }} {{ acc.api_key }} {{ acc.description }} - {{ acc.api_status_description }} + {{ acc.get_api_status_display }} {{ acc.api_last_updated|naturaltimediff }} RefreshLogs