From 21c658fd7a0fb0c31799c11fd300894687d9a04a Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 13 Apr 2015 16:11:41 +0100 Subject: [PATCH] Allow passing of a cache handler to EVEAPIConnection --- standings/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standings/core.py b/standings/core.py index 8b43e3a..281bbc8 100644 --- a/standings/core.py +++ b/standings/core.py @@ -13,8 +13,8 @@ STANDINGS_CORPORATION = 1 class Standings(object): """Grabs the latest Standings from the EVE API and outputs them into a nice template format""" - def __init__(self, keyid, vcode): - self.eveapi = EVEAPIConnection().auth(keyID=keyid, vCode=vcode) + def __init__(self, keyid, vcode, cache_handler=None): + self.eveapi = EVEAPIConnection(cacheHandler=cache_handler).auth(keyID=keyid, vCode=vcode) self.standings_type = type @staticmethod