From 6276cef356f026fe7e0e5832e7a286fecb5439c2 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Wed, 14 Sep 2022 18:13:33 +0100 Subject: [PATCH] Save downloaded Salmon Run records as splatnet3-coop-result-... More consistent with filenames used for SplatNet 2 records --- src/cli/splatnet3/dump-results.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cli/splatnet3/dump-results.ts b/src/cli/splatnet3/dump-results.ts index e3bbb38..994c339 100644 --- a/src/cli/splatnet3/dump-results.ts +++ b/src/cli/splatnet3/dump-results.ts @@ -28,7 +28,7 @@ export function builder(yargs: Argv) { type: 'boolean', default: true, }).option('coop', { - describe: 'Include coop (salmon run) results', + describe: 'Include coop (Salmon Run) results', type: 'boolean', default: true, }); @@ -109,7 +109,7 @@ export async function dumpCoopResults(splatnet: SplatNet3Api, directory: string) for (const item of group.historyDetails.nodes.reverse()) { const id_str = Buffer.from(item.id, 'base64').toString() || item.id; - const filename = 'splatnet3-coopHistory-' + id_str + '.json'; + const filename = 'splatnet3-coop-result-' + id_str + '.json'; const file = path.join(directory, filename); try { @@ -128,6 +128,7 @@ export async function dumpCoopResults(splatnet: SplatNet3Api, directory: string) } if (skipped.length) { - debug('Skipped %d co-op history, files already exist', skipped.length); + if (skipped.length === 1) debug('Skipped co-op result %s, file already exist', skipped[0]); + else debug('Skipped %d co-op results, files already exist', skipped.length); } }