コード例 #1
0
ファイル: commands.py プロジェクト: woolysammoth/coinflow
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
コード例 #2
0
ファイル: commands.py プロジェクト: woolysammoth/coinflow
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