mirror of
https://github.com/nikdoof/evestandings.git
synced 2025-12-22 22:39:26 +00:00
Allow passing of a cache handler to EVEAPIConnection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user