From 7b34b53a3a5a675b8c2fea6865ff66b95a60f73b Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sat, 20 May 2023 09:34:44 +0200 Subject: [PATCH] Workaround for breaking changes before 2.0 --- src/game.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game.py b/src/game.py index 576ebf1..865e793 100644 --- a/src/game.py +++ b/src/game.py @@ -139,6 +139,13 @@ class Game(Gtk.Box): "blacklisted", ) + # TODO: remove for 2.0 + attrs = list(attrs) + if not self.removed: + attrs.remove("removed") + if not self.blacklisted: + attrs.remove("blacklisted") + json.dump( {attr: getattr(self, attr) for attr in attrs if attr}, (self.win.games_dir / f"{self.game_id}.json").open("w"),