Merge branch 'master' of git://git.assembla.com/fpdb-sql
This commit is contained in:
		
						commit
						085f46d3da
					
				|  | @ -917,7 +917,6 @@ class Database: | ||||||
|                         print "warning: constraint %s_%s_fkey not dropped: %s, continuing ..." \ |                         print "warning: constraint %s_%s_fkey not dropped: %s, continuing ..." \ | ||||||
|                               % (fk['fktab'],fk['fkcol'], str(sys.exc_value).rstrip('\n')) |                               % (fk['fktab'],fk['fkcol'], str(sys.exc_value).rstrip('\n')) | ||||||
|                 else: |                 else: | ||||||
|                     print "Only MySQL and Postgres supported so far" |  | ||||||
|                     return -1 |                     return -1 | ||||||
|          |          | ||||||
|         for idx in self.indexes[self.backend]: |         for idx in self.indexes[self.backend]: | ||||||
|  | @ -952,7 +951,6 @@ class Database: | ||||||
|                         print "warning: index %s_%s_idx not dropped %s, continuing ..." \ |                         print "warning: index %s_%s_idx not dropped %s, continuing ..." \ | ||||||
|                               % (idx['tab'],idx['col'], str(sys.exc_value).rstrip('\n')) |                               % (idx['tab'],idx['col'], str(sys.exc_value).rstrip('\n')) | ||||||
|                 else: |                 else: | ||||||
|                     print "Error: Only MySQL and Postgres supported so far" |  | ||||||
|                     return -1 |                     return -1 | ||||||
| 
 | 
 | ||||||
|         if self.backend == self.PGSQL: |         if self.backend == self.PGSQL: | ||||||
|  | @ -1007,7 +1005,6 @@ class Database: | ||||||
|                     except: |                     except: | ||||||
|                         print "   create fk failed: " + str(sys.exc_info()) |                         print "   create fk failed: " + str(sys.exc_info()) | ||||||
|                 else: |                 else: | ||||||
|                     print "Only MySQL and Postgres supported so far" |  | ||||||
|                     return -1 |                     return -1 | ||||||
|          |          | ||||||
|         for idx in self.indexes[self.backend]: |         for idx in self.indexes[self.backend]: | ||||||
|  | @ -1029,7 +1026,6 @@ class Database: | ||||||
|                     except: |                     except: | ||||||
|                         print "   create index failed: " + str(sys.exc_info()) |                         print "   create index failed: " + str(sys.exc_info()) | ||||||
|                 else: |                 else: | ||||||
|                     print "Only MySQL and Postgres supported so far" |  | ||||||
|                     return -1 |                     return -1 | ||||||
| 
 | 
 | ||||||
|         if self.backend == self.PGSQL: |         if self.backend == self.PGSQL: | ||||||
|  |  | ||||||
|  | @ -345,9 +345,9 @@ class DerivedStats(): | ||||||
|         for action in hand.actions[hand.actionStreets[1]]: |         for action in hand.actions[hand.actionStreets[1]]: | ||||||
|             # FIXME: fill other(3|4)BStreet0 - i have no idea what does it mean |             # FIXME: fill other(3|4)BStreet0 - i have no idea what does it mean | ||||||
|             pname, aggr = action[0], action[1] in ('raises', 'bets') |             pname, aggr = action[0], action[1] in ('raises', 'bets') | ||||||
|             self.handsplayers[pname]['street0_3BChance'] = bet_level == 2 |             self.handsplayers[pname]['street0_3BChance'] = self.handsplayers[pname]['street0_3BChance'] or bet_level == 2 | ||||||
|             self.handsplayers[pname]['street0_4BChance'] = bet_level == 3 |             self.handsplayers[pname]['street0_4BChance'] = bet_level == 3 | ||||||
|             self.handsplayers[pname]['street0_3BDone'] =  aggr and (self.handsplayers[pname]['street0_3BChance']) |             self.handsplayers[pname]['street0_3BDone'] =  self.handsplayers[pname]['street0_3BDone'] or (aggr and self.handsplayers[pname]['street0_3BChance']) | ||||||
|             self.handsplayers[pname]['street0_4BDone'] =  aggr and (self.handsplayers[pname]['street0_4BChance']) |             self.handsplayers[pname]['street0_4BDone'] =  aggr and (self.handsplayers[pname]['street0_4BChance']) | ||||||
|             if aggr: |             if aggr: | ||||||
|                 bet_level += 1 |                 bet_level += 1 | ||||||
|  |  | ||||||
|  | @ -27,7 +27,7 @@ def fpdb_options(): | ||||||
|                       action="store_true", |                       action="store_true", | ||||||
|                       help="If passed error output will go to the console rather than .") |                       help="If passed error output will go to the console rather than .") | ||||||
|     parser.add_option("-d", "--databaseName", |     parser.add_option("-d", "--databaseName", | ||||||
|                       dest="dbname", default="fpdb", |                       dest="dbname", | ||||||
|                       help="Overrides the default database name") |                       help="Overrides the default database name") | ||||||
|     parser.add_option("-c", "--configFile", |     parser.add_option("-c", "--configFile", | ||||||
|                       dest="config", default=None, |                       dest="config", default=None, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user