MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / getFitsWithShip

Method getFitsWithShip

service/fit.py:127–140  ·  view source on GitHub ↗

Lists fits of shipID, used with shipBrowser

(shipID)

Source from the content-addressed store, hash-verified

125
126 @staticmethod
127 def getFitsWithShip(shipID):
128 """ Lists fits of shipID, used with shipBrowser """
129 pyfalog.debug("Fetching all fits for ship ID: {0}", shipID)
130 fits = eos.db.getFitsWithShip(shipID)
131 names = []
132 for fit in fits:
133 names.append((fit.ID,
134 fit.name,
135 fit.booster,
136 fit.modified or fit.created or datetime.datetime.fromtimestamp(fit.timestamp),
137 fit.notes,
138 fit.ship.item.graphicID))
139
140 return names
141
142 @staticmethod
143 def getRecentFits():

Callers 5

stage3Method · 0.80
searchStageMethod · 0.80
generateFullHTMLMethod · 0.80
generateMinimalHTMLMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by 1