Print only 1 CSV header.

This commit is contained in:
tastytea 2019-05-16 00:45:06 +02:00
parent 1c336bba29
commit d95a9a1255
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -55,6 +55,7 @@ int main(const int argc, const char *argv[])
{
case export_format::csv:
{
cout << "#URI;Archived URI;Date & time;Tags;Title;Description\n";
for (const Database::entry &entry
: db.retrieve(opts.span[0], opts.span[1]))
{
@ -67,7 +68,6 @@ int main(const int argc, const char *argv[])
strtags += ",";
}
}
cout << "#URI;Archived URI;Date & time;Tags;Title;Description\n";
cout << entry.uri << ';' << entry.archive_uri << ';'
<< timepoint_to_string(entry.datetime) << ';'
<< strtags << ';' << entry.title << ';'