Fix --format

Broken by the switch to dataclasses in bd53e729
This commit is contained in:
JustAnotherArchivist
2020-10-16 00:27:13 +00:00
parent 4ce9ed4eb3
commit 179112a310

View File

@@ -1,5 +1,6 @@
import argparse
import contextlib
import dataclasses
import datetime
import inspect
import logging
@@ -250,7 +251,7 @@ def main():
if args.jsonl:
print(item.json())
elif args.format is not None:
print(args.format.format(**item._asdict()))
print(args.format.format(**dataclasses.asdict(item)))
else:
print(item)
if args.progress and i % 100 == 0: