diff options
author | Random Hacker <random_hacker@xapek.org> | 2011-12-07 23:29:08 +0100 |
---|---|---|
committer | Random Hacker <random_hacker@xapek.org> | 2011-12-07 23:30:30 +0100 |
commit | b7ffe37e0476c1b9c72b85fda58701e37bc35275 (patch) | |
tree | 3780584d33c1888d7b68005a2d857686a7e57982 | |
parent | 2c9b6c09c99eba4939ea1617036ba5bae6889b2a (diff) | |
download | ebus-alt-b7ffe37e0476c1b9c72b85fda58701e37bc35275.tar.gz ebus-alt-b7ffe37e0476c1b9c72b85fda58701e37bc35275.zip |
commiton every packet
-rwxr-xr-x | bin/ebus_dump.py | 4 |
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()) |