Switch to a JSON protocol for the front page

This commit is contained in:
Clément Renault 2020-10-21 18:26:29 +02:00
parent 5caf523fd9
commit 802e925fd7
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
10 changed files with 53 additions and 80 deletions

View file

@ -68,7 +68,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
let mut wtr = csv::Writer::from_writer(io::stdout());
wtr.write_record(&headers)?;
for (_id, record) in documents {
wtr.write_record(&record)?;
wtr.write_record(record.iter().map(|(_, v)| v))?;
}
wtr.flush()?;