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
This commit is contained in:
Donald Burr 2015-10-15 02:38:34 -07:00
parent 0953aa809b
commit 0eb8ba2ab7

View file

@ -675,8 +675,7 @@ function run_timer()
} }
$("#timer_output_area").html(string); $("#timer_output_area").html(string);
// dumb ass way to fetch sifen tweets at 36 minutes past the hour // dumb ass way to fetch and display @sifen_trackbot tier cutoff tweets hourly
// actually using 40 minutes mark to allow for some slop
// using this twitter fetcher: http://jasonmayes.com/projects/twitterApi/#sthash.budgYosd.dpbs // using this twitter fetcher: http://jasonmayes.com/projects/twitterApi/#sthash.budgYosd.dpbs
var config5 = { var config5 = {
"id": '654587648904794112', "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); twitterFetcher.fetch(config5);
window.immediately_refresh_tier_cutoffs = false; window.immediately_refresh_tier_cutoffs = false;
} }