def commandGetUnit(self, command): """ display the current display unit stored in the settings table and unique to each profile """ if not util.checkLogin(self): return self.unit = db.getSetting(self, 'unit', 'satoshi') self.writeConsole('Current display unit is ' + str(self.unit)) return
def commandGetTipAmount(self, command): """ display the current tip amount stored in the settings table and unique to each profile """ if not util.checkLogin(self): return self.tipAmount = db.getSetting(self, 'tipAmount', 1) self.writeConsole('Current Tip Amount is ' + str(self.tipAmount) + ' ' + str(self.unit)) return