feat: start time for scanning

This commit is contained in:
2026-04-06 14:25:09 +08:00
parent a60a6c18b3
commit 49607c8a6a

View File

@@ -196,9 +196,9 @@ def main():
help='Exclude MIDs with no start timestamp in this log',
)
parser.add_argument(
'--no-aborted',
'--include-aborted',
action='store_true',
help='Exclude MIDs that were aborted',
help='Include MIDs that were aborted (aborted MIDs are excluded by default)',
)
parser.add_argument(
'--start',
@@ -239,7 +239,7 @@ def main():
continue
if args.pending and rec['end_ts'] is not None:
continue
if args.no_aborted and rec['end_status'] == 'aborted':
if not args.include_aborted and rec['end_status'] == 'aborted':
continue
if since_dt and (rec['start_ts'] is None or rec['start_ts'] < since_dt):
continue