summaryrefslogtreecommitdiff
path: root/bin/ebus_dump.py
diff options
context:
space:
mode:
authorRandom Hacker <random_hacker@xapek.org>2011-12-07 23:29:08 +0100
committerRandom Hacker <random_hacker@xapek.org>2011-12-07 23:30:30 +0100
commitb7ffe37e0476c1b9c72b85fda58701e37bc35275 (patch)
tree3780584d33c1888d7b68005a2d857686a7e57982 /bin/ebus_dump.py
parent2c9b6c09c99eba4939ea1617036ba5bae6889b2a (diff)
downloadebus-alt-b7ffe37e0476c1b9c72b85fda58701e37bc35275.tar.gz
ebus-alt-b7ffe37e0476c1b9c72b85fda58701e37bc35275.zip
commiton every packet
Diffstat (limited to 'bin/ebus_dump.py')
-rwxr-xr-xbin/ebus_dump.py4
1 files changed, 1 insertions, 3 deletions
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())