From 39b1f57b502508078d9cdb622f67906f5fceeeb6 Mon Sep 17 00:00:00 2001 From: Gabor Guzmics Date: Wed, 24 May 2017 13:00:35 +0200 Subject: [PATCH] =?UTF-8?q?=E2=98=95=20fixed=20clean=20on=20game=20log,=20?= =?UTF-8?q?which=20actually=20was=20an=20import=20error.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scon/quick.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/scon/quick.py b/src/scon/quick.py index 24f3465..6acdc8f 100644 --- a/src/scon/quick.py +++ b/src/scon/quick.py @@ -38,15 +38,8 @@ if __name__ == '__main__': if logf.game_log: game_log_lines = len(logf.game_log.lines) - preserved = 0 - for line in logf.game_log.lines: - if isinstance(line, dict): - continue - if not line.trash: - preserved += 1 - print("Actually %s lines should be preserved in game.log on clean..." % preserved) - logf.clean() + if logf.combat_log: print('combat.log: %s lines were eliminated during cleaning (%s -> %s)' % ( combat_log_lines - len(logf.combat_log.lines), combat_log_lines,