1
0
Fork 0
mirror of https://github.com/Thor77/TeamspeakStats.git synced 2025-04-13 08:55:35 -04:00

Fix cache not written without data

This commit is contained in:
Thor77 2017-09-26 11:15:41 +02:00
parent 40d851e9d7
commit 4c2a51bc5a

View file

@ -177,5 +177,5 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, cache_path=None):
if len(clients) >= 1:
# assemble Server-obj and yield
yield Server(virtualserver_id, clients)
if cache:
if cache is not None:
cache.write()