From 59d6a8d97798d716a2d811420b808f39606d1256 Mon Sep 17 00:00:00 2001 From: marsteralex Date: Fri, 16 Sep 2022 00:52:02 +0200 Subject: [PATCH] move num artists to top of js file --- web/public/mtg/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/public/mtg/app.js b/web/public/mtg/app.js index e0226bd0..f22c7f0f 100644 --- a/web/public/mtg/app.js +++ b/web/public/mtg/app.js @@ -4,6 +4,7 @@ total = 0 cardNames = [] k = 12 extra = 3 +num_artists = k + extra * extra artDict = {} totalCorrect = 0 totalSeen = 0 @@ -142,7 +143,7 @@ function createNewArtistMap() { samples[key] = value newTotal += value.length i++ - if (i >= k + extra * extra) { + if (i >= num_artists) { break } }