Commit 595fa989 authored by librebob's avatar librebob

Use backwards compatible upsert method for peewee.

parent 73120ee7
...@@ -38,9 +38,9 @@ def getGame(id): ...@@ -38,9 +38,9 @@ def getGame(id):
return None return None
def setGame(game): def setGame(game):
GameRecord.replace( GameRecord.insert(,,
installed=game.installed, installed=game.installed,
last_played_date=game.lastPlayedDate, last_played_date=game.lastPlayedDate,
).execute() ).on_conflict(action='REPLACE').execute()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment