Attempt to get rid of codacy warnings

This commit is contained in:
DarkPhoenix
2019-02-25 09:04:59 +03:00
parent ed24e7a2a3
commit 4385b3651f
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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