MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / getShortName

Method getShortName

eos/gamedata.py:238–250  ·  view source on GitHub ↗
(self, charLimit=12)

Source from the content-addressed store, hash-verified

236 self.__priceObj = None
237
238 def getShortName(self, charLimit=12):
239 if len(self.name) <= charLimit:
240 return self.name
241 splitName = self.name.strip().split(' ')
242 if len(splitName) == 1:
243 return self.name
244 shortName = ''
245 for word in splitName:
246 try:
247 shortName += word[0].capitalize()
248 except IndexError:
249 pass
250 return shortName
251
252 @property
253 def customName(self):

Callers 2

getAllFitsLiteMethod · 0.80
shortNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected