From f9b3b0585434811e2ac88fa5728eb695a4bb32b9 Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Mon, 19 Oct 2015 01:38:34 -0700 Subject: [PATCH] Only fetch tweet data once at 37 minutes past the hour It was triggering for every second at xx:37 (60 times), oops --- web_app/js/sif_tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_app/js/sif_tools.js b/web_app/js/sif_tools.js index 729f965..b888314 100644 --- a/web_app/js/sif_tools.js +++ b/web_app/js/sif_tools.js @@ -874,7 +874,7 @@ function run_timer() } // @sifen_trackbot updates come out at 36 minutes past the hour, fetch them at 37 minutes to allow for some slop - if (minute(now) == 37 || window.immediately_refresh_tier_cutoffs) { + if ((minute(now) == 37 && second(now) == 0) || window.immediately_refresh_tier_cutoffs) { $("#tier_info_output_area").html("

Updating tier cutoff data, please wait...

"); twitterFetcher.fetch(config5); window.immediately_refresh_tier_cutoffs = false;