Skip to content

Commit

Permalink
Fixed issue with adding games that contain apostrophe's
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Dlesk committed Jan 2, 2012
1 parent 4542b7f commit 31560b0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified Gamez.db
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/Constants.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def VersionNumber():
return "1.1.1.0"
return "1.1.2.0"
Binary file modified lib/Constants.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/DBFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def AddGameToDb(db_id,status):
system = str(result[1])
game_type = str(result[2])
cursor.close()
sql = "insert into requested_games(GAME_NAME,SYSTEM,GAME_TYPE,status) values('" + game_name + "','" + system + "','" + game_type + "','" + status + "')"
sql = "insert into requested_games(GAME_NAME,SYSTEM,GAME_TYPE,status) values('" + game_name.replace("'","''") + "','" + system + "','" + game_type + "','" + status + "')"
connection = sqlite3.connect(db_path)
cursor = connection.cursor()
cursor.execute(sql)
Expand Down
Binary file modified lib/DBFunctions.pyc
Binary file not shown.

0 comments on commit 31560b0

Please sign in to comment.