Indicate storm event type in output

This commit is contained in:
XANTRONIX Industrial 2025-02-15 21:51:22 -05:00
parent 231ae2dcca
commit c158ab159a

View file

@ -36,13 +36,13 @@ for path in getattr(args, 'csv-report-details'):
for key in bucket.each_matching_key(radars, report.timestamp_start, report.timestamp_end):
if archive.is_downloaded(key):
if not args.quiet:
print(f"event {report.id} key {key} already archived")
print(f"event {report.id} key {key} type {report.event_type} already archived")
else:
if not args.quiet:
if args.dry_run:
print(f"event {report.id} key {key} would archive")
print(f"event {report.id} key {key} type {report.event_type} would archive")
else:
print(f"event {report.id} key {key} archiving")
print(f"event {report.id} key {key} type {report.event_type} archiving")
if not args.dry_run:
archive.download(key)