From 6635254e89ffac55b10fb113baaf0f7643feec51 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 13 Apr 2015 16:27:25 +0100 Subject: [PATCH] Remove in-object cache. --- standings/core.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/standings/core.py b/standings/core.py index 281bbc8..3b88eb3 100644 --- a/standings/core.py +++ b/standings/core.py @@ -42,15 +42,12 @@ class Standings(object): output[type].append((rowtype, row['contactID'], row['contactName'], row['standing'])) def _get_standings(self): - if hasattr(self, '_standings_cache'): - return self._standings_cache res = self.eveapi.corp.ContactList() standings = OrderedDict((x, []) for x in ['Excellent', 'Good', 'Neutral', 'Bad', 'Terrible']) self._parse_list(res.allianceContactList, standings) self._parse_list(res.corporateContactList, standings) for x in ['Excellent', 'Good', 'Neutral', 'Bad', 'Terrible']: standings[x] = sorted(standings[x], key=lambda v: -int(v[3])) - self._standings_cache = standings return standings def render_template(self, template):