Commit 13c4a3a9 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 0bd010e2 e38349eb
...@@ -414,18 +414,18 @@ if settings.modules.challonge.enabled ...@@ -414,18 +414,18 @@ if settings.modules.challonge.enabled
challonge_cache[1] = null challonge_cache[1] = null
return return
refresh_challonge_cache() refresh_challonge_cache()
challonge.participants._index({ # challonge.participants._index({
id: settings.modules.challonge.tournament_id, # id: settings.modules.challonge.tournament_id,
callback: (() -> # callback: (() ->
challonge.matches._index({ # challonge.matches._index({
id: settings.modules.challonge.tournament_id, # id: settings.modules.challonge.tournament_id,
callback: (() -> # callback: (() ->
return # return
) # )
}) # })
return # return
) # )
}) # })
setInterval(refresh_challonge_cache, 30000) setInterval(refresh_challonge_cache, 30000)
if settings.modules.vip.enabled if settings.modules.vip.enabled
......
...@@ -510,15 +510,6 @@ ...@@ -510,15 +510,6 @@
challonge_cache[1] = null; challonge_cache[1] = null;
}; };
refresh_challonge_cache(); refresh_challonge_cache();
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {
challonge.matches._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {})
});
})
});
setInterval(refresh_challonge_cache, 30000); setInterval(refresh_challonge_cache, 30000);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment