From 3f140b8d6a7d774eb06ecba0970b29f74114f339 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Tue, 9 Aug 2016 20:37:20 +0200 Subject: [PATCH] Don't add sid-suffix to output if only one vserver occured in parsed logs * bump version to 0.10.5 --- setup.py | 2 +- tsstats/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4d85f58..4866b0e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='tsstats', - version='0.10.4', + version='0.10.5', author='Thor77', author_email='thor77@thor77.org', description='A simple Teamspeak stats-generator', diff --git a/tsstats/__main__.py b/tsstats/__main__.py index ed65e29..799f112 100644 --- a/tsstats/__main__.py +++ b/tsstats/__main__.py @@ -75,7 +75,7 @@ def main(configuration): online_dc=configuration.getboolean('General', 'onlinedc') ) for sid, clients in sid_clients.items(): - if sid: + if sid and len(sid_clients) > 1: ext = '.{}'.format(sid) else: ext = ''