Attempt to get rid of codacy warnings
This commit is contained in:
@@ -40,7 +40,8 @@ class EveMarketData:
|
||||
if priceMap:
|
||||
self.fetchPrices(priceMap, max(fetchTimeout / 3, 2))
|
||||
|
||||
def fetchPrices(self, priceMap, fetchTimeout, system=None):
|
||||
@staticmethod
|
||||
def fetchPrices(priceMap, fetchTimeout, system=None):
|
||||
params = {"type_ids": ','.join(str(typeID) for typeID in priceMap)}
|
||||
if system is not None:
|
||||
params["system_id"] = system
|
||||
|
||||
@@ -40,7 +40,8 @@ class EveMarketer:
|
||||
if priceMap:
|
||||
self.fetchPrices(priceMap, max(fetchTimeout / 3, 2))
|
||||
|
||||
def fetchPrices(self, priceMap, fetchTimeout, system=None):
|
||||
@staticmethod
|
||||
def fetchPrices(priceMap, fetchTimeout, system=None):
|
||||
params = {"typeid": {typeID for typeID in priceMap}}
|
||||
if system is not None:
|
||||
params["usesystem"] = system
|
||||
|
||||
Reference in New Issue
Block a user