mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-26 17:14:42 +00:00
Always write csv column names, not just when the intro part is configured.
This commit is contained in:
parent
012b506368
commit
fcdaedd46f
1 changed files with 17 additions and 18 deletions
|
|
@ -62,25 +62,24 @@ class CSVLogger (Logger):
|
|||
self.comment(_("Write comments and bugs to %(email)s") %
|
||||
{'email': configuration.Email})
|
||||
self.check_date()
|
||||
self.comment(_("Format of the entries:"))
|
||||
for s in (u"urlname",
|
||||
u"parentname",
|
||||
u"baseref",
|
||||
u"result",
|
||||
u"warningstring",
|
||||
u"infostring",
|
||||
u"valid",
|
||||
u"url",
|
||||
u"line",
|
||||
u"column",
|
||||
u"name",
|
||||
u"dltime",
|
||||
u"dlsize",
|
||||
u"checktime",
|
||||
u"cached"):
|
||||
self.comment(s)
|
||||
row.append(s)
|
||||
self.flush()
|
||||
for s in (u"urlname",
|
||||
u"parentname",
|
||||
u"baseref",
|
||||
u"result",
|
||||
u"warningstring",
|
||||
u"infostring",
|
||||
u"valid",
|
||||
u"url",
|
||||
u"line",
|
||||
u"column",
|
||||
u"name",
|
||||
u"dltime",
|
||||
u"dlsize",
|
||||
u"checktime",
|
||||
u"cached"):
|
||||
if self.has_part(s):
|
||||
row.append(s)
|
||||
self.writer = csv.writer(self.fd, dialect='excel',
|
||||
delimiter=self.separator, lineterminator=os.linesep,
|
||||
quotechar=self.quotechar)
|
||||
|
|
|
|||
Loading…
Reference in a new issue