change str repr of cdxsnapshot to cdx line

This commit is contained in:
Akash Mahanty
2021-01-11 09:34:37 +05:30
parent f4f2e51315
commit 4693dbf9c1
3 changed files with 36 additions and 6 deletions

View File

@@ -25,4 +25,12 @@ class CdxSnapshot:
)
def __str__(self):
return self.archive_url
return ("%s %s %s %s %s %s %s") % (
self.urlkey,
self.timestamp,
self.original,
self.mimetype,
self.statuscode,
self.digest,
self.length,
)