diff --git a/docs/source/conf.py b/docs/source/conf.py index 6300597..5e791c5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -56,7 +56,7 @@ author = 'Thor77' # The short X.Y version. version = '0.2' # The full version, including alpha/beta/rc tags. -release = '0.2.0' +release = '0.2.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index fcee674..d8e94a1 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='tsstats', - version='0.2.0', + version='0.2.1', author='Thor77', author_email='thor77@thor77.org', description='A simple Teamspeak stats-generator', diff --git a/tsstats/client.py b/tsstats/client.py index bf862b0..166cb96 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -130,16 +130,4 @@ class Client(object): return '<{},{}>'.format(self.identifier, self.nick) def __getitem__(self, item): - ''' - DEPRECATED - ''' - return { - 'identifier': self.identifier, - 'nick': self.nick, - 'connected': self.connected, - 'onlinetime': self.onlinetime, - 'kicks': self.kicks, - 'pkicks': self.pkicks, - 'bans': self.bans, - 'pbans': self.pbans, - }[item] + return self.__getattribute__(item)