Skip to content

Commit

Permalink
Increase time before a pairing is handed out again
Browse files Browse the repository at this point in the history
git-svn-id: https://ai-contest.googlecode.com/svn/trunk@643 9d0e4ec5-6d14-e29b-3149-cabf4038ef1e
  • Loading branch information
Janzert committed Nov 30, 2010
1 parent a488364 commit 6b173fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions planet_wars/backend/create_matchups.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def get_submissions(cursor):
if pending:
pending_cond = "AND s.submission_id NOT IN (" + ",".join(pending) + ")"
# check for matches that aren't being completed
if (min_mid + 1000) < (max_mid - len(pending)):
log_message("WARNING: min matchup_id is over 1000 less than max")
if (min_mid + 2000) < (max_mid - len(pending)):
log_message("WARNING: min matchup_id is over 2000 less than max")
else:
pending_cond = ''
cursor.execute("""SELECT s.*, r.rank as rank
Expand Down
2 changes: 1 addition & 1 deletion planet_wars/www/api_get_matchup.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function get_matchup() {
$sql = "SELECT * FROM matchups
WHERE matchup_id = (SELECT MIN(matchup_id) FROM matchups
WHERE dispatch_time IS NULL
OR dispatch_time < (NOW() - INTERVAL 6 MINUTE))";
OR dispatch_time < (NOW() - INTERVAL 15 MINUTE))";
$result = mysql_query($sql);
if (mysql_num_rows($result) == 0) {
# trying to create matchups here instead of just dieing
Expand Down

0 comments on commit 6b173fb

Please sign in to comment.