Klimfaktoren
This commit is contained in:
5039208
backup/klimafaktoren.json
5039208
backup/klimafaktoren.json
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
import { prisma } from "#lib/server/prisma";
|
||||
import { prisma } from "#lib/server/prisma.js";
|
||||
import moment from "moment";
|
||||
import csv from "csvtojson"
|
||||
|
||||
@@ -70,4 +70,4 @@ const result = await prisma.klimafaktoren.createMany({
|
||||
})
|
||||
|
||||
|
||||
console.log(`Updated ${result.count} rows!`)
|
||||
console.log(`Updated ${result.count} rows! Pulled ${filename}`)
|
||||
@@ -4,7 +4,7 @@ import * as fs from "fs";
|
||||
|
||||
const start = moment().set("year", 2019).set("month", 8).set("date", 1);
|
||||
|
||||
const end = moment().set("year", 2023).set("month", 2).set("date", 1);
|
||||
const end = moment().set("year", 2024).set("month", 2).set("date", 1);
|
||||
|
||||
let current = start.clone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user