summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/main.py b/main.py
index 0b400f14..1f7157a8 100755
--- a/main.py
+++ b/main.py
@@ -262,11 +262,18 @@ if config.predicate:
# simple walk in C++, using `walk_entries'.
if 1:
- walk_entries (journal, handler)
+ if command == "e":
+ walk_transactions (new_entry, handler)
+ else:
+ walk_entries (journal, handler)
else:
- for entry in journal:
- for xact in entry:
+ if command == "e":
+ for xact in new_entry:
handler (xact)
+ else:
+ for entry in journal:
+ for xact in entry:
+ handler (xact)
# Flush the handlers, causing them to output whatever data is still
# pending.