From 26e700d4739025ed2b1e7876196d77c423e6210b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 2 Aug 2024 19:22:28 +0200 Subject: [PATCH] HandleErrors script: start correctly numbered empty changeset --- scripts/handleErrors.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/handleErrors.ts b/scripts/handleErrors.ts index d30898c71..74887276f 100644 --- a/scripts/handleErrors.ts +++ b/scripts/handleErrors.ts @@ -6,7 +6,7 @@ import { OsmObject } from "../src/Logic/Osm/OsmObject" import OsmObjectDownloader from "../src/Logic/Osm/OsmObjectDownloader" import { OsmConnection } from "../src/Logic/Osm/OsmConnection" import { ImmutableStore } from "../src/Logic/UIEventSource" -import { Utils } from "../src/Utils" +import Constants from "../src/Models/Constants" type ErrorMessage = { ip: string @@ -28,9 +28,6 @@ class HandleErrors extends Script { constructor() { super("Inspects the errors made on a given day. Argument: path to errors") } - - parseLine() {} - async main(args: string[]): Promise { const osmConnection = new OsmConnection() const downloader = new OsmObjectDownloader(osmConnection.Backend(), undefined) @@ -110,7 +107,8 @@ class HandleErrors extends Script { const path = "error_changeset_" + parsed.index + "_" + e.layout + "_" + e.username + ".osc" if ( - changeset === "" + changeset === + `` ) { console.log( "Changes for " + parsed.index + ": empty changeset, not creating a file for it"