track knockouts
This commit is contained in:
		
							
								
								
									
										10
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								main.py
									
									
									
									
									
								
							| @@ -53,10 +53,14 @@ def _init_db(conn: sqlite3.Connection): | |||||||
|             game, player, name, specie, |             game, player, name, specie, | ||||||
|             UNIQUE(game, player, specie) |             UNIQUE(game, player, specie) | ||||||
|         ); |         ); | ||||||
|         """ |         CREATE TABLE IF NOT EXISTS knockouts( | ||||||
|  |             game, turn, player, name, | ||||||
|  |             UNIQUE(game, turn, player) | ||||||
|  |         ); | ||||||
|  |         CREATE TABLE IF NOT EXISTS games( | ||||||
|  |             id, p1, p2, format, uploadtime, | ||||||
|  |             UNIQUE(id) | ||||||
|         ) |         ) | ||||||
|     conn.execute( |  | ||||||
|         """ |  | ||||||
|         """ |         """ | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user