From 0eb8ba2ab772c48272c02c7b9214455ac422c411 Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Thu, 15 Oct 2015 02:38:34 -0700 Subject: [PATCH] Fetch @sifen_trackbot tweets at 37 minutes past the hour 1 minutes' worth of slop is more than enough, it seems to be pretty timely with its updates --- web_app/js/sif_tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_app/js/sif_tools.js b/web_app/js/sif_tools.js index 5179485..f3dd1a1 100644 --- a/web_app/js/sif_tools.js +++ b/web_app/js/sif_tools.js @@ -675,8 +675,7 @@ function run_timer() } $("#timer_output_area").html(string); - // dumb ass way to fetch sifen tweets at 36 minutes past the hour - // actually using 40 minutes mark to allow for some slop + // dumb ass way to fetch and display @sifen_trackbot tier cutoff tweets hourly // using this twitter fetcher: http://jasonmayes.com/projects/twitterApi/#sthash.budgYosd.dpbs var config5 = { "id": '654587648904794112', @@ -707,7 +706,8 @@ function run_timer() } } - if (minute(now) == 40 || window.immediately_refresh_tier_cutoffs) { + // @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) { twitterFetcher.fetch(config5); window.immediately_refresh_tier_cutoffs = false; }