Lists fits of shipID, used with shipBrowser
(shipID)
| 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(): |