From b7ffe37e0476c1b9c72b85fda58701e37bc35275 Mon Sep 17 00:00:00 2001 From: Random Hacker Date: Wed, 7 Dec 2011 23:29:08 +0100 Subject: commiton every packet --- bin/ebus_dump.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/ebus_dump.py') diff --git a/bin/ebus_dump.py b/bin/ebus_dump.py index 2d6933c..c170849 100755 --- a/bin/ebus_dump.py +++ b/bin/ebus_dump.py @@ -36,9 +36,7 @@ class MyEbusReader(EbusReader): for field in self.sql.get_values(ebus_packet): session.add(field) - if int(time.time()) % 4 == 0: - logger.info("COMMIT") - session.commit() + session.commit() logger.info("packet %s" % ebus_packet.name()) -- cgit v1.2.1