From 7f40d9dd3a988f33456556c06bb6599d54daf05f Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sat, 28 Nov 2009 11:48:06 +0000 Subject: [PATCH] change default for min_seats to 0 in case hc.activeSeats is zero --- pyfpdb/Database.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 26dc4efe..775e1475 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -452,23 +452,23 @@ class Database: stat_dict = {} if seats_style == 'A': - seats_min, seats_max = 2, 10 + seats_min, seats_max = 0, 10 elif seats_style == 'C': seats_min, seats_max = seats_cust_nums[num_seats][0], seats_cust_nums[num_seats][1] elif seats_style == 'E': seats_min, seats_max = num_seats, num_seats else: - seats_min, seats_max = 2, 10 + seats_min, seats_max = 0, 10 print "bad seats_style value:", seats_style if h_seats_style == 'A': - h_seats_min, h_seats_max = 2, 10 + h_seats_min, h_seats_max = 0, 10 elif h_seats_style == 'C': h_seats_min, h_seats_max = h_seats_cust_nums[num_seats][0], h_seats_cust_nums[num_seats][1] elif h_seats_style == 'E': h_seats_min, h_seats_max = num_seats, num_seats else: - h_seats_min, h_seats_max = 2, 10 + h_seats_min, h_seats_max = 0, 10 print "bad h_seats_style value:", h_seats_style print "opp seats style", seats_style, "hero seats style", h_seats_style print "opp seats:", seats_min, seats_max, " hero seats:", h_seats_min, h_seats_max