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

Method Do

gui/fitCommands/gui/cargo/add.py:20–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 self.amount = amount
19
20 def Do(self):
21 cmd = CalcAddCargoCommand(fitID=self.fitID, cargoInfo=CargoInfo(itemID=self.itemID, amount=self.amount))
22 success = self.internalHistory.submit(cmd)
23 Market.getInstance().storeRecentlyUsed(self.itemID)
24 eos.db.commit()
25 wx.PostEvent(gui.mainFrame.MainFrame.getInstance(), GE.FitChanged(fitIDs=(self.fitID,)))
26 return success
27
28 def Undo(self):
29 success = self.internalHistory.undoAll()

Callers 2

getRepairDataMethod · 0.45
undoAllMethod · 0.45

Calls 5

CalcAddCargoCommandClass · 0.90
CargoInfoClass · 0.90
submitMethod · 0.80
storeRecentlyUsedMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected