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