mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-11 21:08:33 +03:00
use tab as delimiter in intermediate representation
This commit is contained in:
@@ -234,8 +234,8 @@ class LocalFetcher extends Fetcher {
|
|||||||
const wb = X.readFile(this.path)
|
const wb = X.readFile(this.path)
|
||||||
wb.SheetNames.forEach(name => {
|
wb.SheetNames.forEach(name => {
|
||||||
const sh = wb.Sheets[name]
|
const sh = wb.Sheets[name]
|
||||||
const csv = X.utils.sheet_to_csv(sh)
|
const csv = X.utils.sheet_to_csv(sh, { FS: '\t' })
|
||||||
const ll = csv.split('\n').map(line => line.split(','))
|
const ll = csv.split('\n').map(line => line.split('\t'))
|
||||||
this.save(name, ll)
|
this.save(name, ll)
|
||||||
})
|
})
|
||||||
return Promise.resolve(true)
|
return Promise.resolve(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user