add xlsx support

by factoring out a Fetcher class
This commit is contained in:
Lachlan Kermode
2020-03-27 12:30:21 +01:00
parent 2e343a17dd
commit 5d7eb0af05
7 changed files with 226 additions and 89 deletions

View File

@@ -22,6 +22,7 @@ class Controller {
update () {
return Promise.all(
Object.keys(this.fetchers).map(sheet => {
console.log(sheet)
return this.fetchers[sheet].update()
})
).then(results => {