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

Method getRecentFits

service/fit.py:143–154  ·  view source on GitHub ↗

Fetches recently modified fits, used with shipBrowser

()

Source from the content-addressed store, hash-verified

141
142 @staticmethod
143 def getRecentFits():
144 """ Fetches recently modified fits, used with shipBrowser """
145 pyfalog.debug("Fetching recent fits")
146 fits = eos.db.getRecentFits()
147 returnInfo = []
148
149 for fit in fits:
150 item = eos.db.getItem(fit[1])
151 returnInfo.append((fit[0], fit[2], fit[3] or fit[4] or datetime.datetime.fromtimestamp(fit[5]), item, fit[6]))
152 # ID name timestamps item notes
153
154 return returnInfo
155
156 @staticmethod
157 def getFitsWithModules(typeIDs):

Callers 1

ToggleRecentShipsMethod · 0.80

Calls 2

getItemMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected